public class CKContainer extends NSObject
A CKContainer, and its CKDatabases, are the main entry points into the CloudKit framework.
Several methods in CloudKit accept completion handlers to indicate when they're completed. All CKOperation subclasses include progress and completion blocks to report significant events in their lifecycles. Each of these handlers and blocks is invoked on a non-main serial queue. The receiver is responsible for handling the message on a different queue or thread if it is required.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CKContainer(org.moe.natj.general.Pointer peer) |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CKContainer alloc()
public static CKContainer allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static CKContainer containerWithIdentifier(java.lang.String containerIdentifier)
If the application is in production mode (aka, @c com.apple.developer.icloud-container-environment is set to Production in your entitlements plist, and you have no override in @c com.apple.developer.icloud-container-development-container-identifiers), then the production environment is used.
public static java.lang.String debugDescription_static()
public static CKContainer defaultContainer()
application-identifier is the calling process' @c application-identifier entitlement on iOS / tvOS / watchOS. application-identifier is the calling process' @c com.apple.application-identifier entitlement on macOS. On all OSes, if an @c com.apple.developer.associated-application-identifier entitlement is present, its value will be preferred over the @c application-identifier variants.
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CKContainer new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public void acceptShareMetadataCompletionHandler(CKShareMetadata metadata, CKContainer.Block_acceptShareMetadataCompletionHandler completionHandler)
public void accountStatusWithCompletionHandler(CKContainer.Block_accountStatusWithCompletionHandler completionHandler)
public void addOperation(CKOperation operation)
public java.lang.String containerIdentifier()
public CKDatabase databaseWithDatabaseScope(long databaseScope)
public void discoverAllIdentitiesWithCompletionHandler(CKContainer.Block_discoverAllIdentitiesWithCompletionHandler completionHandler)
[@c] CKDiscoverAllUserIdentitiesOperation is the more configurable, @c CKOperation -based alternative to this methods
public void discoverUserIdentityWithEmailAddressCompletionHandler(java.lang.String email,
CKContainer.Block_discoverUserIdentityWithEmailAddressCompletionHandler completionHandler)
Only users who have opted-in to user discoverability will have their identities returned by this method. If a user with the inputted email exists in iCloud, but has not opted-in to user discoverability, this method completes with a nil @c userInfo. @c CKDiscoverUserIdentitiesOperation is the more configurable, @c CKOperation -based alternative to this method
public void discoverUserIdentityWithPhoneNumberCompletionHandler(java.lang.String phoneNumber,
CKContainer.Block_discoverUserIdentityWithPhoneNumberCompletionHandler completionHandler)
Only users who have opted-in to user discoverability will have their identities returned by this method. If a user with the inputted phone number exists in iCloud, but has not opted-in to user discoverability, this method completes with a nil @c userInfo. @c CKDiscoverUserIdentitiesOperation is the more configurable, @c CKOperation -based alternative to this method
public void discoverUserIdentityWithUserRecordIDCompletionHandler(CKRecordID userRecordID, CKContainer.Block_discoverUserIdentityWithUserRecordIDCompletionHandler completionHandler)
Only users who have opted-in to user discoverability will have their identities returned by this method. If a user has not opted-in to user discoverability, this method completes with a nil @c userInfo. @c CKDiscoverUserIdentitiesOperation is the more configurable, @c CKOperation -based alternative to this method
public void fetchAllLongLivedOperationIDsWithCompletionHandler(CKContainer.Block_fetchAllLongLivedOperationIDsWithCompletionHandler completionHandler)
public void fetchLongLivedOperationWithIDCompletionHandler(java.lang.String operationID,
CKContainer.Block_fetchLongLivedOperationWithIDCompletionHandler completionHandler)
public void fetchShareMetadataWithURLCompletionHandler(NSURL url, CKContainer.Block_fetchShareMetadataWithURLCompletionHandler completionHandler)
public void fetchShareParticipantWithEmailAddressCompletionHandler(java.lang.String emailAddress,
CKContainer.Block_fetchShareParticipantWithEmailAddressCompletionHandler completionHandler)
[@c] CKFetchShareParticipantsOperation is the more configurable, @c CKOperation -based alternative to these methods.
public void fetchShareParticipantWithPhoneNumberCompletionHandler(java.lang.String phoneNumber,
CKContainer.Block_fetchShareParticipantWithPhoneNumberCompletionHandler completionHandler)
public void fetchShareParticipantWithUserRecordIDCompletionHandler(CKRecordID userRecordID, CKContainer.Block_fetchShareParticipantWithUserRecordIDCompletionHandler completionHandler)
public void fetchUserRecordIDWithCompletionHandler(CKContainer.Block_fetchUserRecordIDWithCompletionHandler completionHandler)
This work is treated as having @c NSQualityOfServiceUserInitiated quality of service.
public CKContainer init()
public CKDatabase privateCloudDatabase()
public CKDatabase publicCloudDatabase()
public void requestApplicationPermissionCompletionHandler(long applicationPermission,
CKContainer.Block_requestApplicationPermissionCompletionHandler completionHandler)
public CKDatabase sharedCloudDatabase()
public void statusForApplicationPermissionCompletionHandler(long applicationPermission,
CKContainer.Block_statusForApplicationPermissionCompletionHandler completionHandler)