mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 15:34:26 +08:00

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
78 lines
1.5 KiB
TypeScript
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;
|