Skip to content

tachibana-shin/capacitor-plugin-pip

Repository files navigation

capacitor-plugin-pip

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

Install

npm install capacitor-plugin-pip
npx cap sync

Usage

import { PiP } from 'capacitor-plugin-pip'

PiP.enterPiP()

API

enterPip()

enterPip() => any

Returns: any


isPipSupported()

isPipSupported() => any

Returns: 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() => any

Returns: any


Interfaces

PluginListenerHandle

Prop Type
remove () => any

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published