@mattermost/react-native-emm
Version:
React Native package for EMM managed configurations
36 lines (29 loc) • 1.08 kB
text/typescript
import {type TurboModule, TurboModuleRegistry} from 'react-native';
import type { Double, UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
type AuthenticateConfig = {
reason?: string;
description?: string;
fallback?: boolean;
supressEnterPassword?: boolean;
blurOnAuthenticate?: boolean;
};
type AuthenticationMethods = {
readonly face: boolean;
readonly fingerprint: boolean;
readonly passcode: boolean;
};
export interface Spec extends TurboModule {
readonly getConstants:() => {};
addListener: (eventType: string) => void;
removeListeners: (count: number) => void;
authenticate(options: AuthenticateConfig): Promise<boolean>;
deviceSecureWith: () => Promise<AuthenticationMethods>;
exitApp: () => void;
getManagedConfig: () => UnsafeObject;
openSecuritySettings: () => void;
setAppGroupId: (identifier: string) => void;
setBlurScreen: (enabled: boolean) => void;
applyBlurEffect: (radius: Double) => void;
removeBlurEffect: () => void;
};
export default TurboModuleRegistry.get<Spec>('Emm');