0.0.18 • Published 8 months ago

@caprockapps/capacitor-chromecast v0.0.18

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
8 months ago

@caprockapps/capacitor-chromecast

This is a plugin for Capacitor that enables Chromecast functionality for iOS and Android.

Install

npm install @caprockapps/capacitor-chromecast
npx cap sync

API

initialize(...)

initialize(options: any) => Promise<void>
ParamType
optionsany

requestSession()

requestSession() => Promise<void>

launchMedia(...)

launchMedia(mediaUrl: string) => Promise<boolean>
ParamType
mediaUrlstring

Returns: Promise<boolean>


addListener(string, ...)

addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventNamestring
listenerFuncListenerCallback

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


sendMessage(...)

sendMessage(messageObj: any) => Promise<any>
ParamType
messageObjany

Returns: Promise<any>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Type Aliases

ListenerCallback

(err: any, ...args: any[]): void

0.0.16

8 months ago

0.0.17

8 months ago

0.0.18

8 months ago

0.0.15

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago