The plugin use to presentation to second monitor
npm install presentation-api
npx cap sync
echo(...)
openLink(...)
openRawHtml(...)
addListener('onSuccessLoadUrl', ...)
addListener('onFailLoadUrl', ...)
getDisplays()
- Interfaces
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
openLink(options: { url: string; }) => Promise<{ success?: any; error?: any; url?: any; }>
Param | Type |
---|---|
options |
{ url: string; } |
Returns: Promise<{ success?: any; error?: any; url?: any; }>
openRawHtml(options: { htmlStr: string; }) => Promise<{ success?: any; error?: any; }>
Param | Type |
---|---|
options |
{ htmlStr: string; } |
Returns: Promise<{ success?: any; error?: 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> |