@dvsa/capacitor-plugin-asam
v2.1.0
Published
transition app to asam
Readme
capacitor-plugin-asam
Can be used to transition an application to Autonomous Single App Mode (ASAM) or check whether ASAM is currently enabled.
Note: As described in the above link:
"Entering Single App mode is supported only for devices that are supervised using Mobile Device Management (MDM), and the app itself must be enabled for this mode by MDM"
Install
npm install capacitor-plugin-asam
npx cap syncAPI
isSingleAppModeEnabled()
isSingleAppModeEnabled() => Promise<AsamStatus>Returns: Promise<AsamStatus>
toggleSingleAppMode()
toggleSingleAppMode() => Promise<AsamResult>Returns: Promise<AsamResult>
setSingleAppMode(...)
setSingleAppMode(options: { shouldEnable: boolean; }) => Promise<AsamResult>| Param | Type |
| ------------- | --------------------------------------- |
| options | { shouldEnable: boolean; } |
Returns: Promise<AsamResult>
Interfaces
AsamStatus
| Prop | Type |
| --------------- | -------------------- |
| isEnabled | boolean |
AsamResult
| Prop | Type |
| ---------------- | -------------------- |
| didSucceed | boolean |
