mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Add iOS 10 .d.ts-es
This commit is contained in:
@@ -93,14 +93,14 @@ declare class NEAppRule extends NSObject implements NSCopying, NSSecureCoding {
|
||||
|
||||
static new(): NEAppRule; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
matchDomains: NSArray<any>;
|
||||
|
||||
matchPath: string;
|
||||
|
||||
/* readonly */ matchSigningIdentifier: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { signingIdentifier: string; });
|
||||
@@ -120,8 +120,6 @@ declare class NEDNSSettings extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
static new(): NEDNSSettings; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
domainName: string;
|
||||
|
||||
matchDomains: NSArray<string>;
|
||||
@@ -132,6 +130,8 @@ declare class NEDNSSettings extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
/* readonly */ servers: NSArray<string>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { servers: NSArray<string>; });
|
||||
@@ -151,8 +151,6 @@ declare class NEEvaluateConnectionRule extends NSObject implements NSCopying, NS
|
||||
|
||||
static new(): NEEvaluateConnectionRule; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ action: NEEvaluateConnectionRuleAction;
|
||||
|
||||
/* readonly */ matchDomains: NSArray<string>;
|
||||
@@ -161,6 +159,8 @@ declare class NEEvaluateConnectionRule extends NSObject implements NSCopying, NS
|
||||
|
||||
useDNSServers: NSArray<string>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { matchDomains: NSArray<string>; andAction: NEEvaluateConnectionRuleAction; });
|
||||
@@ -187,14 +187,14 @@ declare class NEFilterBrowserFlow extends NEFilterFlow implements NSCopying, NSS
|
||||
|
||||
static new(): NEFilterBrowserFlow; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ parentURL: NSURL;
|
||||
|
||||
/* readonly */ request: NSURLRequest;
|
||||
|
||||
/* readonly */ response: NSURLResponse;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -233,10 +233,10 @@ declare class NEFilterControlVerdict extends NEFilterNewFlowVerdict implements N
|
||||
|
||||
static new(): NEFilterControlVerdict; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
static updateRules(): NEFilterControlVerdict;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -283,7 +283,7 @@ declare class NEFilterDataVerdict extends NEFilterVerdict implements NSCopying,
|
||||
|
||||
static remediateVerdictWithRemediationURLMapKeyRemediationButtonTextMapKey(remediationURLMapKey: string, remediationButtonTextMapKey: string): NEFilterDataVerdict;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
@@ -302,10 +302,10 @@ declare class NEFilterFlow extends NSObject implements NSCopying, NSSecureCoding
|
||||
|
||||
static new(): NEFilterFlow; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ URL: NSURL;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -365,7 +365,7 @@ declare class NEFilterNewFlowVerdict extends NEFilterVerdict implements NSCopyin
|
||||
|
||||
static remediateVerdictWithRemediationURLMapKeyRemediationButtonTextMapKey(remediationURLMapKey: string, remediationButtonTextMapKey: string): NEFilterNewFlowVerdict;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
@@ -395,8 +395,6 @@ declare class NEFilterProviderConfiguration extends NSObject implements NSCopyin
|
||||
|
||||
static new(): NEFilterProviderConfiguration; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
filterBrowsers: boolean;
|
||||
|
||||
filterSockets: boolean;
|
||||
@@ -413,6 +411,8 @@ declare class NEFilterProviderConfiguration extends NSObject implements NSCopyin
|
||||
|
||||
vendorConfiguration: NSDictionary<string, any>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -438,7 +438,7 @@ declare class NEFilterRemediationVerdict extends NEFilterVerdict implements NSCo
|
||||
|
||||
static new(): NEFilterRemediationVerdict; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
@@ -455,8 +455,6 @@ declare class NEFilterSocketFlow extends NEFilterFlow implements NSCopying, NSSe
|
||||
|
||||
static new(): NEFilterSocketFlow; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ localEndpoint: NWEndpoint;
|
||||
|
||||
/* readonly */ remoteEndpoint: NWEndpoint;
|
||||
@@ -467,6 +465,8 @@ declare class NEFilterSocketFlow extends NEFilterFlow implements NSCopying, NSSe
|
||||
|
||||
socketType: number;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -482,7 +482,7 @@ declare class NEFilterVerdict extends NSObject implements NSCopying, NSSecureCod
|
||||
|
||||
static new(): NEFilterVerdict; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
@@ -493,7 +493,7 @@ declare class NEFilterVerdict extends NSObject implements NSCopying, NSSecureCod
|
||||
initWithCoder(aDecoder: NSCoder): this;
|
||||
}
|
||||
|
||||
declare class NEFlowMetaData extends NSObject {
|
||||
declare class NEFlowMetaData extends NSObject implements NSCopying, NSSecureCoding {
|
||||
|
||||
static alloc(): NEFlowMetaData; // inherited from NSObject
|
||||
|
||||
@@ -502,6 +502,16 @@ declare class NEFlowMetaData extends NSObject {
|
||||
/* readonly */ sourceAppSigningIdentifier: string;
|
||||
|
||||
/* readonly */ sourceAppUniqueIdentifier: NSData;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
|
||||
encodeWithCoder(aCoder: NSCoder): void;
|
||||
|
||||
initWithCoder(aDecoder: NSCoder): this;
|
||||
}
|
||||
|
||||
declare class NEHotspotHelper extends NSObject {
|
||||
@@ -625,14 +635,14 @@ declare class NEIPv4Route extends NSObject implements NSCopying, NSSecureCoding
|
||||
|
||||
static new(): NEIPv4Route; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ destinationAddress: string;
|
||||
|
||||
/* readonly */ destinationSubnetMask: string;
|
||||
|
||||
gatewayAddress: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { destinationAddress: string; subnetMask: string; });
|
||||
@@ -652,8 +662,6 @@ declare class NEIPv4Settings extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
static new(): NEIPv4Settings; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ addresses: NSArray<string>;
|
||||
|
||||
excludedRoutes: NSArray<NEIPv4Route>;
|
||||
@@ -662,6 +670,8 @@ declare class NEIPv4Settings extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
/* readonly */ subnetMasks: NSArray<string>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { addresses: NSArray<string>; subnetMasks: NSArray<string>; });
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
@@ -683,14 +693,14 @@ declare class NEIPv6Route extends NSObject implements NSCopying, NSSecureCoding
|
||||
|
||||
static new(): NEIPv6Route; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ destinationAddress: string;
|
||||
|
||||
/* readonly */ destinationNetworkPrefixLength: number;
|
||||
|
||||
gatewayAddress: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { destinationAddress: string; networkPrefixLength: number; });
|
||||
@@ -710,8 +720,6 @@ declare class NEIPv6Settings extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
static new(): NEIPv6Settings; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ addresses: NSArray<string>;
|
||||
|
||||
excludedRoutes: NSArray<NEIPv6Route>;
|
||||
@@ -720,6 +728,8 @@ declare class NEIPv6Settings extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
/* readonly */ networkPrefixLengths: NSArray<number>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { addresses: NSArray<string>; networkPrefixLengths: NSArray<number>; });
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
@@ -739,8 +749,6 @@ declare class NEOnDemandRule extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
static new(): NEOnDemandRule; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
DNSSearchDomainMatch: NSArray<string>;
|
||||
|
||||
DNSServerAddressMatch: NSArray<string>;
|
||||
@@ -753,6 +761,8 @@ declare class NEOnDemandRule extends NSObject implements NSCopying, NSSecureCodi
|
||||
|
||||
probeURL: NSURL;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -814,14 +824,45 @@ declare const enum NEOnDemandRuleInterfaceType {
|
||||
Cellular = 3
|
||||
}
|
||||
|
||||
declare class NEPacket extends NSObject implements NSCopying, NSSecureCoding {
|
||||
|
||||
static alloc(): NEPacket; // inherited from NSObject
|
||||
|
||||
static new(): NEPacket; // inherited from NSObject
|
||||
|
||||
/* readonly */ data: NSData;
|
||||
|
||||
/* readonly */ metadata: NEFlowMetaData;
|
||||
|
||||
/* readonly */ protocolFamily: number;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { data: NSData; protocolFamily: number; });
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
|
||||
encodeWithCoder(aCoder: NSCoder): void;
|
||||
|
||||
initWithCoder(aDecoder: NSCoder): this;
|
||||
|
||||
initWithDataProtocolFamily(data: NSData, protocolFamily: number): this;
|
||||
}
|
||||
|
||||
declare class NEPacketTunnelFlow extends NSObject {
|
||||
|
||||
static alloc(): NEPacketTunnelFlow; // inherited from NSObject
|
||||
|
||||
static new(): NEPacketTunnelFlow; // inherited from NSObject
|
||||
|
||||
readPacketObjectsWithCompletionHandler(completionHandler: (p1: NSArray<NEPacket>) => void): void;
|
||||
|
||||
readPacketsWithCompletionHandler(completionHandler: (p1: NSArray<NSData>, p2: NSArray<number>) => void): void;
|
||||
|
||||
writePacketObjects(packets: NSArray<NEPacket>): boolean;
|
||||
|
||||
writePacketsWithProtocols(packets: NSArray<NSData>, protocols: NSArray<number>): boolean;
|
||||
}
|
||||
|
||||
@@ -871,6 +912,8 @@ declare class NEProvider extends NSObject {
|
||||
|
||||
createUDPSessionToEndpointFromEndpoint(remoteEndpoint: NWEndpoint, localEndpoint: NWHostEndpoint): NWUDPSession;
|
||||
|
||||
displayMessageCompletionHandler(message: string, completionHandler: (p1: boolean) => void): void;
|
||||
|
||||
sleepWithCompletionHandler(completionHandler: () => void): void;
|
||||
|
||||
wake(): void;
|
||||
@@ -915,8 +958,6 @@ declare class NEProxyServer extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
static new(): NEProxyServer; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ address: string;
|
||||
|
||||
authenticationRequired: boolean;
|
||||
@@ -927,6 +968,8 @@ declare class NEProxyServer extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
username: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { address: string; port: number; });
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
@@ -946,8 +989,6 @@ declare class NEProxySettings extends NSObject implements NSCopying, NSSecureCod
|
||||
|
||||
static new(): NEProxySettings; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
HTTPEnabled: boolean;
|
||||
|
||||
HTTPSEnabled: boolean;
|
||||
@@ -968,6 +1009,8 @@ declare class NEProxySettings extends NSObject implements NSCopying, NSSecureCod
|
||||
|
||||
proxyAutoConfigurationURL: NSURL;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -983,14 +1026,14 @@ declare class NETunnelNetworkSettings extends NSObject implements NSCopying, NSS
|
||||
|
||||
static new(): NETunnelNetworkSettings; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
DNSSettings: NEDNSSettings;
|
||||
|
||||
proxySettings: NEProxySettings;
|
||||
|
||||
/* readonly */ tunnelRemoteAddress: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { tunnelRemoteAddress: string; });
|
||||
@@ -1088,6 +1131,8 @@ declare class NEVPNConnection extends NSObject {
|
||||
|
||||
/* readonly */ connectedDate: Date;
|
||||
|
||||
/* readonly */ manager: NEVPNManager;
|
||||
|
||||
/* readonly */ status: NEVPNStatus;
|
||||
|
||||
startVPNTunnelAndReturnError(): boolean;
|
||||
@@ -1151,7 +1196,7 @@ declare const enum NEVPNIKEv2DeadPeerDetectionRate {
|
||||
|
||||
declare const enum NEVPNIKEv2DiffieHellmanGroup {
|
||||
|
||||
Group0 = 0,
|
||||
GroupInvalid = 0,
|
||||
|
||||
Group1 = 1,
|
||||
|
||||
@@ -1210,8 +1255,6 @@ declare class NEVPNIKEv2SecurityAssociationParameters extends NSObject implement
|
||||
|
||||
static new(): NEVPNIKEv2SecurityAssociationParameters; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
diffieHellmanGroup: NEVPNIKEv2DiffieHellmanGroup;
|
||||
|
||||
encryptionAlgorithm: NEVPNIKEv2EncryptionAlgorithm;
|
||||
@@ -1220,6 +1263,8 @@ declare class NEVPNIKEv2SecurityAssociationParameters extends NSObject implement
|
||||
|
||||
lifetimeMinutes: number;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -1264,8 +1309,6 @@ declare class NEVPNProtocol extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
static new(): NEVPNProtocol; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
disconnectOnSleep: boolean;
|
||||
|
||||
identityData: NSData;
|
||||
@@ -1282,6 +1325,8 @@ declare class NEVPNProtocol extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
username: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -1371,11 +1416,21 @@ declare class NWBonjourServiceEndpoint extends NWEndpoint {
|
||||
/* readonly */ type: string;
|
||||
}
|
||||
|
||||
declare class NWEndpoint extends NSObject {
|
||||
declare class NWEndpoint extends NSObject implements NSCopying, NSSecureCoding {
|
||||
|
||||
static alloc(): NWEndpoint; // inherited from NSObject
|
||||
|
||||
static new(): NWEndpoint; // inherited from NSObject
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
|
||||
encodeWithCoder(aCoder: NSCoder): void;
|
||||
|
||||
initWithCoder(aDecoder: NSCoder): this;
|
||||
}
|
||||
|
||||
declare class NWHostEndpoint extends NWEndpoint {
|
||||
|
||||
Reference in New Issue
Block a user