tachibana-shin / capacitor-plugin-pip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Java 51.0%Language:Swift 15.5%Language:TypeScript 11.3%Language:Ruby 10.2%Language:Objective-C 7.0%Language:JavaScript 5.0%