capacitor-plugin-gbvp-android-restricted-info
v0.0.6
Published
Plugin use to get Android Restricted Info like IMEI, serial, etc
Downloads
38
Maintainers
Readme
capacitor-plugin-gbvp-android-restricted-info
Plugin use to get Android Restricted Info like IMEI, serial, etc. ** Exclusively for Android OS and API 22 to API 28 **
Install
npm install capacitor-plugin-gbvp-android-restricted-info
npx cap sync
API
getInfo()
getInfo() => Promise<RestrictedDeviceInfoResult>
Returns: Promise<RestrictedDeviceInfoResult>
checkPermissions()
checkPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
requestPermissions(...)
requestPermissions(permissions?: AndroidRestrictedInfoPermissions | undefined) => Promise<PermissionStatus>
| Param | Type |
| ----------------- | --------------------------------------------------------------------------------------------- |
| permissions
| AndroidRestrictedInfoPermissions |
Returns: Promise<PermissionStatus>
Interfaces
RestrictedDeviceInfoResult
| Prop | Type |
| ------------ | ------------------- |
| imei
| string |
| serial
| string |
PermissionStatus
| Prop | Type |
| ---------- | ----------------------------------------------------------- |
| info
| PermissionState |
AndroidRestrictedInfoPermissions
| Prop | Type |
| ----------------- | --------------------------- |
| permissions
| 'phoneState'[] |
Type Aliases
PermissionState
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'
AndroidRestrictedInfoPermissionType
'phoneState'