0.0.1 • Published 1 year ago

capacitor-plugin-pip v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

capacitor-plugin-pip

A plugin allow enter to picture-in-picture mode.

Install

npm install capacitor-plugin-pip
npx cap sync

API

enterPip()

enterPip() => any

Returns: any


isPipSupported()

isPipSupported() => any

Returns: any


addListener('pipModeChanged', ...)

addListener(eventName: 'pipModeChanged', listenerFunc: (opts: { isInPipMode: boolean; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName'pipModeChanged'
listenerFunc(opts: { isInPipMode: boolean; }) => void

Returns: any


removeAllListeners()

removeAllListeners() => any

Returns: any


Interfaces

PluginListenerHandle

PropType
remove() => any