Capacitor Plugin for presentation api
npm install presentation-capacitor
npx cap sync
openLink(...)
addListener('onSuccessLoadUrl', ...)
addListener('onFailLoadUrl', ...)
getDisplays()
- Interfaces
openLink(options: { url: string; }) => Promise<{ success?: any; error?: any; url?: any; }>
Param | Type |
---|---|
options |
{ url: string; } |
Returns: Promise<{ success?: any; error?: any; url?: any; }>
addListener(eventName: 'onSuccessLoadUrl', listenerFunc: (data: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
'onSuccessLoadUrl' |
listenerFunc |
(data: any) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'onFailLoadUrl', listenerFunc: (data: any) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
'onFailLoadUrl' |
listenerFunc |
(data: any) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
getDisplays() => Promise<{ displays: number; }>
Returns: Promise<{ displays: number; }>
Prop | Type |
---|---|
remove |
() => Promise<void> |