@dvsa/capacitor-plugin-window-mode
v0.0.2
Published
detect if ios app running in multi window mode
Readme
capacitor-plugin-window-mode
detect if ios app running in multi window mode
Install
npm install capacitor-plugin-window-mode
npx cap syncAPI
isInWindowMode()
isInWindowMode() => Promise<WindowStatus>Determine if the app is running in window mode.
Returns: Promise<WindowStatus>
addListener('windowModeChanged', ...)
addListener(eventName: 'windowModeChanged', listenerFunc: (info: { isInWindowMode: boolean; }) => void) => Promise<PluginListenerHandle>| Param | Type | Description |
| ------------------ | ------------------------------------------------------------ | ----------------------------------------------- |
| eventName | 'windowModeChanged' | - name of the event to listen for. |
| listenerFunc | (info: { isInWindowMode: boolean; }) => void | - function to be run when the event is emitted. |
Returns: Promise<PluginListenerHandle>
Interfaces
WindowStatus
| Prop | Type |
| -------------------- | -------------------- |
| isInWindowMode | boolean |
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
