@caprockapps/capacitor-chromecast
TypeScript icon, indicating that this package has built-in type declarations

0.0.18 • Public • Published

@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>
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> & PluginListenerHandle
Param Type
eventName string
listenerFunc ListenerCallback

Returns: Promise<PluginListenerHandle> & 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

Readme

Keywords

Package Sidebar

Install

npm i @caprockapps/capacitor-chromecast

Weekly Downloads

0

Version

0.0.18

License

MIT

Unpacked Size

191 kB

Total Files

32

Last publish

Collaborators

  • eeckstein