diff --git a/src/contacts.cs b/src/contacts.cs index de4f00273dad..62caf73878e7 100644 --- a/src/contacts.cs +++ b/src/contacts.cs @@ -167,6 +167,16 @@ interface CNContact : NSCopying, NSMutableCopying, NSSecureCoding, NSItemProvide [Export ("predicateForContactsMatchingName:")] NSPredicate GetPredicateForContacts (string matchingName); + [Watch (4,0), Mac (10,13), iOS (11,0)] + [Static] + [Export ("predicateForContactsMatchingEmailAddress:")] + NSPredicate GetPredicateForContactsMatchingEmailAddress (string emailAddress); + + [Watch (4,0), Mac (10,13), iOS (11,0)] + [Static] + [Export ("predicateForContactsMatchingPhoneNumber:")] + NSPredicate GetPredicateForContacts (CNPhoneNumber phoneNumber); + [Static] [Export ("predicateForContactsWithIdentifiers:")] NSPredicate GetPredicateForContacts (string [] identifiers); diff --git a/tests/xtro-sharpie/iOS-Contacts.todo b/tests/xtro-sharpie/iOS-Contacts.todo index 9660a1097fc0..e69de29bb2d1 100644 --- a/tests/xtro-sharpie/iOS-Contacts.todo +++ b/tests/xtro-sharpie/iOS-Contacts.todo @@ -1,2 +0,0 @@ -!missing-selector! +CNContact::predicateForContactsMatchingEmailAddress: not bound -!missing-selector! +CNContact::predicateForContactsMatchingPhoneNumber: not bound diff --git a/tests/xtro-sharpie/macOS-Contacts.todo b/tests/xtro-sharpie/macOS-Contacts.todo index 9660a1097fc0..e69de29bb2d1 100644 --- a/tests/xtro-sharpie/macOS-Contacts.todo +++ b/tests/xtro-sharpie/macOS-Contacts.todo @@ -1,2 +0,0 @@ -!missing-selector! +CNContact::predicateForContactsMatchingEmailAddress: not bound -!missing-selector! +CNContact::predicateForContactsMatchingPhoneNumber: not bound diff --git a/tests/xtro-sharpie/watchOS-Contacts.todo b/tests/xtro-sharpie/watchOS-Contacts.todo index 9660a1097fc0..e69de29bb2d1 100644 --- a/tests/xtro-sharpie/watchOS-Contacts.todo +++ b/tests/xtro-sharpie/watchOS-Contacts.todo @@ -1,2 +0,0 @@ -!missing-selector! +CNContact::predicateForContactsMatchingEmailAddress: not bound -!missing-selector! +CNContact::predicateForContactsMatchingPhoneNumber: not bound