Files
NativeScript/tns-core-modules/ios/objc-i386/objc!LocalAuthentication.d.ts
Panayot Cankov 1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00

78 lines
1.5 KiB
TypeScript

declare const enum LAAccessControlOperation {
CreateItem = 0,
UseItem = 1,
CreateKey = 2,
UseKeySign = 3
}
declare class LAContext extends NSObject {
static alloc(): LAContext; // inherited from NSObject
static new(): LAContext; // inherited from NSObject
/* readonly */ evaluatedPolicyDomainState: NSData;
localizedFallbackTitle: string;
maxBiometryFailures: number;
touchIDAuthenticationAllowableReuseDuration: number;
canEvaluatePolicyError(policy: LAPolicy): boolean;
evaluateAccessControlOperationLocalizedReasonReply(accessControl: any, operation: LAAccessControlOperation, localizedReason: string, reply: (p1: boolean, p2: NSError) => void): void;
evaluatePolicyLocalizedReasonReply(policy: LAPolicy, localizedReason: string, reply: (p1: boolean, p2: NSError) => void): void;
invalidate(): void;
isCredentialSet(type: LACredentialType): boolean;
setCredentialType(credential: NSData, type: LACredentialType): boolean;
}
declare const enum LACredentialType {
ApplicationPassword = 0
}
declare const enum LAError {
AuthenticationFailed = -1,
UserCancel = -2,
UserFallback = -3,
SystemCancel = -4,
PasscodeNotSet = -5,
TouchIDNotAvailable = -6,
TouchIDNotEnrolled = -7,
TouchIDLockout = -8,
AppCancel = -9,
InvalidContext = -10
}
declare var LAErrorDomain: string;
declare const enum LAPolicy {
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2
}
declare var LATouchIDAuthenticationMaximumAllowableReuseDuration: number;