permissions
const permissions: { camera: Promise<PermissionResult>; microphone: Promise<PermissionResult>; photoLibrary: Promise<PermissionResult>; location: Promise<PermissionResult>; bluetooth: Promise<PermissionResult>; biometric: Promise<BiometricResult>;};Defined in: domains/permissions.ts:35
Type Declaration
Section titled “Type Declaration”camera()
Section titled “camera()”camera(): Promise<PermissionResult>;Check camera permission status.
Returns
Section titled “Returns”Promise<PermissionResult>
{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.
microphone()
Section titled “microphone()”microphone(): Promise<PermissionResult>;Check microphone permission status.
Returns
Section titled “Returns”Promise<PermissionResult>
{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.
photoLibrary()
Section titled “photoLibrary()”photoLibrary(): Promise<PermissionResult>;Check photo library permission status.
Returns
Section titled “Returns”Promise<PermissionResult>
{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.
location()
Section titled “location()”location(): Promise<PermissionResult>;Check location permission status.
Returns
Section titled “Returns”Promise<PermissionResult>
{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.
bluetooth()
Section titled “bluetooth()”bluetooth(): Promise<PermissionResult>;Check Bluetooth permission status.
Returns
Section titled “Returns”Promise<PermissionResult>
{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.
biometric()
Section titled “biometric()”biometric(): Promise<BiometricResult>;Check biometric authentication availability.
Returns
Section titled “Returns”Promise<BiometricResult>
{ available, biometric_type, error } inside the iOS app; { available: false, biometric_type: 'unknown', error: null } elsewhere.
Throws
Section titled “Throws”MobileLockerError on network failure or server error.