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:
@@ -30,8 +30,6 @@ declare class CNContact extends NSObject implements NSCopying, NSMutableCopying,
|
||||
|
||||
static predicateForContactsWithIdentifiers(identifiers: NSArray<string>): NSPredicate;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ birthday: NSDateComponents;
|
||||
|
||||
/* readonly */ contactRelations: NSArray<CNLabeledValue<CNContactRelation>>;
|
||||
@@ -80,6 +78,8 @@ declare class CNContact extends NSObject implements NSCopying, NSMutableCopying,
|
||||
|
||||
/* readonly */ phoneticMiddleName: string;
|
||||
|
||||
/* readonly */ phoneticOrganizationName: string;
|
||||
|
||||
/* readonly */ postalAddresses: NSArray<CNLabeledValue<CNPostalAddress>>;
|
||||
|
||||
/* readonly */ previousFamilyName: string;
|
||||
@@ -90,6 +90,8 @@ declare class CNContact extends NSObject implements NSCopying, NSMutableCopying,
|
||||
|
||||
/* readonly */ urlAddresses: NSArray<CNLabeledValue<string>>;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
areKeysAvailable(keyDescriptors: NSArray<CNKeyDescriptor>): boolean;
|
||||
@@ -126,7 +128,7 @@ declare var CNContactEmailAddressesKey: string;
|
||||
|
||||
declare var CNContactFamilyNameKey: string;
|
||||
|
||||
declare class CNContactFetchRequest extends NSObject {
|
||||
declare class CNContactFetchRequest extends NSObject implements NSSecureCoding {
|
||||
|
||||
static alloc(): CNContactFetchRequest; // inherited from NSObject
|
||||
|
||||
@@ -142,8 +144,16 @@ declare class CNContactFetchRequest extends NSObject {
|
||||
|
||||
unifyResults: boolean;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { keysToFetch: NSArray<CNKeyDescriptor>; });
|
||||
|
||||
encodeWithCoder(aCoder: NSCoder): void;
|
||||
|
||||
initWithCoder(aDecoder: NSCoder): this;
|
||||
|
||||
initWithKeysToFetch(keysToFetch: NSArray<CNKeyDescriptor>): this;
|
||||
}
|
||||
|
||||
@@ -211,6 +221,8 @@ declare var CNContactPhoneticGivenNameKey: string;
|
||||
|
||||
declare var CNContactPhoneticMiddleNameKey: string;
|
||||
|
||||
declare var CNContactPhoneticOrganizationNameKey: string;
|
||||
|
||||
declare var CNContactPostalAddressesKey: string;
|
||||
|
||||
declare var CNContactPreviousFamilyNameKey: string;
|
||||
@@ -221,8 +233,6 @@ declare class CNContactProperty extends NSObject implements NSCopying, NSSecureC
|
||||
|
||||
static new(): CNContactProperty; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ contact: CNContact;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
@@ -233,6 +243,8 @@ declare class CNContactProperty extends NSObject implements NSCopying, NSSecureC
|
||||
|
||||
/* readonly */ value: any;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -254,10 +266,10 @@ declare class CNContactRelation extends NSObject implements NSCopying, NSSecureC
|
||||
|
||||
static new(): CNContactRelation; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ name: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { name: string; });
|
||||
@@ -330,9 +342,9 @@ declare class CNContactVCardSerialization extends NSObject {
|
||||
|
||||
static alloc(): CNContactVCardSerialization; // inherited from NSObject
|
||||
|
||||
static contactsWithDataError(data: NSData): NSArray<any>;
|
||||
static contactsWithDataError(data: NSData): NSArray<CNContact>;
|
||||
|
||||
static dataWithContactsError(contacts: NSArray<any>): NSData;
|
||||
static dataWithContactsError(contacts: NSArray<CNContact>): NSData;
|
||||
|
||||
static descriptorForRequiredKeys(): CNKeyDescriptor;
|
||||
|
||||
@@ -364,14 +376,14 @@ declare class CNContainer extends NSObject implements NSCopying, NSSecureCoding
|
||||
|
||||
static predicateForContainersWithIdentifiers(identifiers: NSArray<string>): NSPredicate;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
|
||||
/* readonly */ name: string;
|
||||
|
||||
/* readonly */ type: CNContainerType;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -452,12 +464,12 @@ declare class CNGroup extends NSObject implements NSCopying, NSMutableCopying, N
|
||||
|
||||
static predicateForGroupsWithIdentifiers(identifiers: NSArray<string>): NSPredicate;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
|
||||
/* readonly */ name: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -483,12 +495,12 @@ declare class CNInstantMessageAddress extends NSObject implements NSCopying, NSS
|
||||
|
||||
static new(): CNInstantMessageAddress; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ service: string;
|
||||
|
||||
/* readonly */ username: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { username: string; service: string; });
|
||||
@@ -531,8 +543,6 @@ interface CNKeyDescriptor extends NSCopying, NSObjectProtocol, NSSecureCoding {
|
||||
declare var CNKeyDescriptor: {
|
||||
|
||||
prototype: CNKeyDescriptor;
|
||||
|
||||
supportsSecureCoding(): boolean;
|
||||
};
|
||||
|
||||
declare var CNLabelContactRelationAssistant: string;
|
||||
@@ -593,14 +603,14 @@ declare class CNLabeledValue<ValueType> extends NSObject implements NSCopying, N
|
||||
|
||||
static new<ValueType>(): CNLabeledValue<ValueType>; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ identifier: string;
|
||||
|
||||
/* readonly */ label: string;
|
||||
|
||||
/* readonly */ value: ValueType;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { label: string; value: ValueType; });
|
||||
@@ -670,6 +680,8 @@ declare class CNMutableContact extends CNContact {
|
||||
|
||||
phoneticMiddleName: string;
|
||||
|
||||
phoneticOrganizationName: string;
|
||||
|
||||
postalAddresses: NSArray<CNLabeledValue<CNPostalAddress>>;
|
||||
|
||||
previousFamilyName: string;
|
||||
@@ -715,10 +727,10 @@ declare class CNPhoneNumber extends NSObject implements NSCopying, NSSecureCodin
|
||||
|
||||
static phoneNumberWithStringValue(stringValue: string): CNPhoneNumber;
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ stringValue: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { stringValue: string; });
|
||||
@@ -740,8 +752,6 @@ declare class CNPostalAddress extends NSObject implements NSCopying, NSMutableCo
|
||||
|
||||
static new(): CNPostalAddress; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ ISOCountryCode: string;
|
||||
|
||||
/* readonly */ city: string;
|
||||
@@ -754,6 +764,8 @@ declare class CNPostalAddress extends NSObject implements NSCopying, NSMutableCo
|
||||
|
||||
/* readonly */ street: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
|
||||
@@ -836,8 +848,6 @@ declare class CNSocialProfile extends NSObject implements NSCopying, NSSecureCod
|
||||
|
||||
static new(): CNSocialProfile; // inherited from NSObject
|
||||
|
||||
static supportsSecureCoding(): boolean;
|
||||
|
||||
/* readonly */ service: string;
|
||||
|
||||
/* readonly */ urlString: string;
|
||||
@@ -846,6 +856,8 @@ declare class CNSocialProfile extends NSObject implements NSCopying, NSSecureCod
|
||||
|
||||
/* readonly */ username: string;
|
||||
|
||||
/* readonly */ static supportsSecureCoding: boolean; // inherited from NSSecureCoding
|
||||
|
||||
constructor(o: { coder: NSCoder; }); // inherited from NSCoding
|
||||
|
||||
constructor(o: { urlString: string; username: string; userIdentifier: string; service: string; });
|
||||
|
||||
Reference in New Issue
Block a user