This is a plugin for Capacitor that enables Chromecast functionality for iOS and Android.
npm install @caprockapps/capacitor-chromecast
npx cap sync
initialize(...)
requestSession()
launchMedia(...)
addListener(string, ...)
sendMessage(...)
- Interfaces
- Type Aliases
initialize(options: any) => Promise<void>
Param | Type |
---|---|
options |
any |
requestSession() => Promise<void>
launchMedia(mediaUrl: string) => Promise<boolean>
Param | Type |
---|---|
mediaUrl |
string |
Returns: Promise<boolean>
addListener(eventName: string, listenerFunc: ListenerCallback) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
string |
listenerFunc |
ListenerCallback |
Returns: Promise<PluginListenerHandle>
sendMessage(messageObj: any) => Promise<any>
Param | Type |
---|---|
messageObj |
any |
Returns: Promise<any>
Prop | Type |
---|---|
remove |
() => Promise<void> |
(err: any, ...args: any[]): void