@caprockapps/capacitor-chromecast
v7.0.6
Published
This is a plugin for Capacitor that enables Chromecast functionality for iOS and Android.
Downloads
646
Readme
@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 syncAPI
initialize(...)requestSession()launchMedia(...)addListener(string, ...)sendMessage(...)- Interfaces
- Type Aliases
initialize(...)
initialize(options: any) => Promise<void>| Param | Type |
| ------------- | ---------------- |
| options | any |
requestSession()
requestSession() => Promise<void>launchMedia(...)
launchMedia(mediaUrl: string) => Promise<boolean>| Param | Type |
| -------------- | ------------------- |
| mediaUrl | string |
Returns: Promise<boolean>
addListener(string, ...)
addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle>| Param | Type |
| ------------------ | ------------------------------------------------------------- |
| eventName | string |
| listenerFunc | ListenerCallback |
Returns: Promise<PluginListenerHandle>
sendMessage(...)
sendMessage(messageObj: any) => Promise<any>| Param | Type |
| ---------------- | ---------------- |
| messageObj | any |
Returns: Promise<any>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
Type Aliases
ListenerCallback
(err: any, ...args: any[]): void
