A plugin allow enter to picture-in-picture mode.
npm install capacitor-plugin-pip
npx cap sync
import { PiP } from 'capacitor-plugin-pip'
PiP.enterPiP()
enterPip() => any
Returns: any
isPipSupported() => any
Returns: any
addListener(eventName: 'pipModeChanged', listenerFunc: (opts: { isInPipMode: boolean; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
'pipModeChanged' |
listenerFunc |
(opts: { isInPipMode: boolean; }) => void |
Returns: any
removeAllListeners() => any
Returns: any
Prop | Type |
---|---|
remove |
() => any |