capacitor-plugin-pip
v0.0.1
Published
A plugin allow enter to picture-in-picture mode.
Maintainers
Readme
capacitor-plugin-pip
A plugin allow enter to picture-in-picture mode.
Install
npm install capacitor-plugin-pip
npx cap syncAPI
enterPip()
enterPip() => anyReturns: any
isPipSupported()
isPipSupported() => anyReturns: any
addListener('pipModeChanged', ...)
addListener(eventName: 'pipModeChanged', listenerFunc: (opts: { isInPipMode: boolean; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle| Param | Type |
| ------------------ | --------------------------------------------------------- |
| eventName | 'pipModeChanged' |
| listenerFunc | (opts: { isInPipMode: boolean; }) => void |
Returns: any
removeAllListeners()
removeAllListeners() => anyReturns: any
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ------------------------- |
| remove | () => any |
