appium-ios-simulator
Version:
iOS Simulator interface for Appium.
25 lines • 1.13 kB
TypeScript
import type { CoreSimulator, SupportsBiometric } from '../types';
type CoreSimulatorWithBiometric = CoreSimulator & SupportsBiometric;
/**
* @returns Promise that resolves to true if biometric is enrolled
*/
export declare function isBiometricEnrolled(this: CoreSimulatorWithBiometric): Promise<boolean>;
/**
* @param isEnabled Whether to enable biometric enrollment
*/
export declare function enrollBiometric(this: CoreSimulatorWithBiometric, isEnabled?: boolean): Promise<void>;
/**
* Sends a notification to match/not match the particular biometric.
*
* @param shouldMatch Set it to true or false in order to emulate
* matching/not matching the corresponding biometric
* @param biometricName Either touchId or faceId (faceId is only available since iOS 11)
*/
export declare function sendBiometricMatch(this: CoreSimulatorWithBiometric, shouldMatch?: boolean, biometricName?: string): Promise<void>;
/**
* @param name Biometric name (touchId or faceId)
* @returns Domain component string
*/
export declare function toBiometricDomainComponent(name: string): string;
export {};
//# sourceMappingURL=biometric.d.ts.map