@mattermost/react-native-emm
Version:
React Native package for EMM managed configurations
31 lines • 1.12 kB
TypeScript
import { type TurboModule } 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;
}
declare const _default: Spec | null;
export default _default;
//# sourceMappingURL=NativeEmm.d.ts.map