Files
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

85 lines
2.5 KiB
TypeScript

interface CNContactPickerDelegate extends NSObjectProtocol {
contactPickerDidCancel?(picker: CNContactPickerViewController): void;
contactPickerDidSelectContact?(picker: CNContactPickerViewController, contact: CNContact): void;
contactPickerDidSelectContactProperties?(picker: CNContactPickerViewController, contactProperties: NSArray<CNContactProperty> | CNContactProperty[]): void;
contactPickerDidSelectContactProperty?(picker: CNContactPickerViewController, contactProperty: CNContactProperty): void;
contactPickerDidSelectContacts?(picker: CNContactPickerViewController, contacts: NSArray<CNContact> | CNContact[]): void;
}
declare var CNContactPickerDelegate: {
prototype: CNContactPickerDelegate;
};
declare class CNContactPickerViewController extends UIViewController {
static alloc(): CNContactPickerViewController; // inherited from NSObject
static new(): CNContactPickerViewController; // inherited from NSObject
delegate: CNContactPickerDelegate;
displayedPropertyKeys: NSArray<string>;
predicateForEnablingContact: NSPredicate;
predicateForSelectionOfContact: NSPredicate;
predicateForSelectionOfProperty: NSPredicate;
}
declare class CNContactViewController extends UIViewController {
static alloc(): CNContactViewController; // inherited from NSObject
static descriptorForRequiredKeys(): CNKeyDescriptor;
static new(): CNContactViewController; // inherited from NSObject
static viewControllerForContact(contact: CNContact): CNContactViewController;
static viewControllerForNewContact(contact: CNContact): CNContactViewController;
static viewControllerForUnknownContact(contact: CNContact): CNContactViewController;
allowsActions: boolean;
allowsEditing: boolean;
alternateName: string;
readonly contact: CNContact;
contactStore: CNContactStore;
delegate: CNContactViewControllerDelegate;
displayedPropertyKeys: NSArray<any>;
message: string;
parentContainer: CNContainer;
parentGroup: CNGroup;
shouldShowLinkedContacts: boolean;
highlightPropertyWithKeyIdentifier(key: string, identifier: string): void;
}
interface CNContactViewControllerDelegate extends NSObjectProtocol {
contactViewControllerDidCompleteWithContact?(viewController: CNContactViewController, contact: CNContact): void;
contactViewControllerShouldPerformDefaultActionForContactProperty?(viewController: CNContactViewController, property: CNContactProperty): boolean;
}
declare var CNContactViewControllerDelegate: {
prototype: CNContactViewControllerDelegate;
};