Package org.robovm.apple.contacts
Class CNContactStore
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.contacts.CNContactStore
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class CNContactStore extends NSObject
- Since:
- Available in iOS 9.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CNContactStore.CNContactStorePtr
static class
CNContactStore.Notifications
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description CNContactStore()
protected
CNContactStore(NSObject.Handle h, long handle)
protected
CNContactStore(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NSString
DidChangeNotification()
boolean
enumerateContacts(CNContactFetchRequest fetchRequest, org.robovm.objc.block.VoidBlock2<CNContact,org.robovm.rt.bro.ptr.BooleanPtr> block)
boolean
executeSaveRequest(CNSaveRequest saveRequest)
static CNAuthorizationStatus
getAuthorizationStatusForEntityType(CNEntityType entityType)
NSArray<CNContainer>
getContainersMatchingPredicate(NSPredicate predicate)
java.lang.String
getDefaultContainerIdentifier()
NSArray<CNGroup>
getGroupsMatchingPredicate(NSPredicate predicate)
CNContact
getUnifiedContact(java.lang.String identifier, java.util.List<CNContactPropertyKey> keys)
NSArray<CNContact>
getUnifiedContactsMatchingPredicate(NSPredicate predicate, java.util.List<CNContactPropertyKey> keys)
void
requestAccessForEntityType(CNEntityType entityType, org.robovm.objc.block.VoidBlock2<java.lang.Boolean,NSError> completionHandler)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
CNContactStore
public CNContactStore()
-
CNContactStore
protected CNContactStore(NSObject.Handle h, long handle)
-
CNContactStore
protected CNContactStore(NSObject.SkipInit skipInit)
-
-
Method Detail
-
enumerateContacts
public boolean enumerateContacts(CNContactFetchRequest fetchRequest, org.robovm.objc.block.VoidBlock2<CNContact,org.robovm.rt.bro.ptr.BooleanPtr> block) throws NSErrorException
- Throws:
NSErrorException
-
DidChangeNotification
public static NSString DidChangeNotification()
- Since:
- Available in iOS 9.0 and later.
-
requestAccessForEntityType
public void requestAccessForEntityType(CNEntityType entityType, org.robovm.objc.block.VoidBlock2<java.lang.Boolean,NSError> completionHandler)
-
getUnifiedContactsMatchingPredicate
public NSArray<CNContact> getUnifiedContactsMatchingPredicate(NSPredicate predicate, java.util.List<CNContactPropertyKey> keys) throws NSErrorException
- Throws:
NSErrorException
-
getUnifiedContact
public CNContact getUnifiedContact(java.lang.String identifier, java.util.List<CNContactPropertyKey> keys) throws NSErrorException
- Throws:
NSErrorException
-
getGroupsMatchingPredicate
public NSArray<CNGroup> getGroupsMatchingPredicate(NSPredicate predicate) throws NSErrorException
- Throws:
NSErrorException
-
getContainersMatchingPredicate
public NSArray<CNContainer> getContainersMatchingPredicate(NSPredicate predicate) throws NSErrorException
- Throws:
NSErrorException
-
executeSaveRequest
public boolean executeSaveRequest(CNSaveRequest saveRequest) throws NSErrorException
- Throws:
NSErrorException
-
getDefaultContainerIdentifier
public java.lang.String getDefaultContainerIdentifier()
-
getAuthorizationStatusForEntityType
public static CNAuthorizationStatus getAuthorizationStatusForEntityType(CNEntityType entityType)
-
-