Skip to content

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

camera(): Promise<PermissionResult>;

Check camera permission status.

Promise<PermissionResult>

{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.

MobileLockerError on network failure or server error.

microphone(): Promise<PermissionResult>;

Check microphone permission status.

Promise<PermissionResult>

{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.

MobileLockerError on network failure or server error.

photoLibrary(): Promise<PermissionResult>;

Check photo library permission status.

Promise<PermissionResult>

{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.

MobileLockerError on network failure or server error.

location(): Promise<PermissionResult>;

Check location permission status.

Promise<PermissionResult>

{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.

MobileLockerError on network failure or server error.

bluetooth(): Promise<PermissionResult>;

Check Bluetooth permission status.

Promise<PermissionResult>

{ status, granted } inside the iOS app; { status: 'not_determined', granted: false } elsewhere.

MobileLockerError on network failure or server error.

biometric(): Promise<BiometricResult>;

Check biometric authentication availability.

Promise<BiometricResult>

{ available, biometric_type, error } inside the iOS app; { available: false, biometric_type: 'unknown', error: null } elsewhere.

MobileLockerError on network failure or server error.