Files
NativeScript/tns-platform-declarations/ios/objc-x86_64/objc!LocalAuthentication.d.ts
Teodor Dermendjiev f54f71bc60 feat(iOS): update platform declarations
- add `objc-x86_64` architecture typings
- remove `objc-i386` architecture typings
- add `vector` typings
- change
```
(method) NSArray<ObjectType>.arrayWithArray<{}>(array: NSArray<{}>): NSArray<{}>
```
to
```
(method) NSArray<ObjectType>.arrayWithArray<string>(array: string[] | NSArray<string>): NSArray<string>
```

* Export typings on for iOS 11 x86_64

* fix: Export typings with fixed NSArray parameters

* Export typescript declarations for iOS 11.4

* Update reference path with the new typings folder

* feat: Create a script for auto typings generation

* Export typings on for iOS 11 x86_64

* fix: Export typings with fixed NSArray parameters

* Export typescript declarations for iOS 11.4

* Update reference path with the new typings folder

* feat: Create a script for auto typings generation

* chore: update .gitignore and .npmignore

* fix: Update constructor methods accepting NSArray parameters

* chore: Update manual changes flag for typings generation
2018-09-05 11:50:02 +03:00

109 lines
1.9 KiB
TypeScript

declare const enum LAAccessControlOperation {
CreateItem = 0,
UseItem = 1,
CreateKey = 2,
UseKeySign = 3,
UseKeyDecrypt = 4,
UseKeyKeyExchange = 5
}
declare const enum LABiometryType {
TypeNone = 0,
None = 0,
TypeTouchID = 1,
TypeFaceID = 2
}
declare class LAContext extends NSObject {
static alloc(): LAContext; // inherited from NSObject
static new(): LAContext; // inherited from NSObject
readonly biometryType: LABiometryType;
readonly evaluatedPolicyDomainState: NSData;
interactionNotAllowed: boolean;
localizedCancelTitle: string;
localizedFallbackTitle: string;
localizedReason: 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,
BiometryNotAvailable = -6,
BiometryNotEnrolled = -7,
BiometryLockout = -8,
NotInteractive = -1004
}
declare var LAErrorDomain: string;
declare const enum LAPolicy {
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2
}
declare var LATouchIDAuthenticationMaximumAllowableReuseDuration: number;