Package apple.cloudkit
Class CKContainer
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.cloudkit.CKContainer
-
- All Implemented Interfaces:
NSObject
public class CKContainer extends NSObject
CKContainer 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCKContainer(org.moe.natj.general.Pointer peer)
-
Method Summary
-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CKContainer alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
containerWithIdentifier
public static CKContainer containerWithIdentifier(java.lang.String containerIdentifier)
Obtain a CKContainer for the given 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.
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultContainer
public static CKContainer defaultContainer()
Convenience method that uses the calling process' "iCloud.\(application-identifier)" as the container identifier 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.
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
acceptShareMetadataCompletionHandler
public void acceptShareMetadataCompletionHandler(CKShareMetadata metadata, CKContainer.Block_acceptShareMetadataCompletionHandler completionHandler)
-
accountStatusWithCompletionHandler
public void accountStatusWithCompletionHandler(CKContainer.Block_accountStatusWithCompletionHandler completionHandler)
-
addOperation
public void addOperation(CKOperation operation)
-
containerIdentifier
public java.lang.String containerIdentifier()
-
databaseWithDatabaseScope
public CKDatabase databaseWithDatabaseScope(long databaseScope)
Convenience methods- Returns:
- a database that's pointer-equal to one of the above properties@enum
-
discoverAllIdentitiesWithCompletionHandler
public void discoverAllIdentitiesWithCompletionHandler(CKContainer.Block_discoverAllIdentitiesWithCompletionHandler completionHandler)
Fetches all user records that match an entry in the user's address book. [@c] CKDiscoverUserIdentityOperation is the more configurable, @c CKOperation -based alternatives to these methods
-
discoverUserIdentityWithEmailAddressCompletionHandler
public void discoverUserIdentityWithEmailAddressCompletionHandler(java.lang.String email, CKContainer.Block_discoverUserIdentityWithEmailAddressCompletionHandler completionHandler)
-
discoverUserIdentityWithPhoneNumberCompletionHandler
public void discoverUserIdentityWithPhoneNumberCompletionHandler(java.lang.String phoneNumber, CKContainer.Block_discoverUserIdentityWithPhoneNumberCompletionHandler completionHandler)
-
discoverUserIdentityWithUserRecordIDCompletionHandler
public void discoverUserIdentityWithUserRecordIDCompletionHandler(CKRecordID userRecordID, CKContainer.Block_discoverUserIdentityWithUserRecordIDCompletionHandler completionHandler)
-
fetchAllLongLivedOperationIDsWithCompletionHandler
public void fetchAllLongLivedOperationIDsWithCompletionHandler(CKContainer.Block_fetchAllLongLivedOperationIDsWithCompletionHandler completionHandler)
Long lived CKOperations returned by this call must be started on an operation queue. Remember to set the callback blocks before starting the operation. If an operation has already completed against the server, and is subsequently resumed, that operation will replay all of its callbacks from the start of the operation, but the request will not be re-sent to the server. If a long lived operation is cancelled or finishes completely it is no longer returned by these calls.
-
fetchLongLivedOperationWithIDCompletionHandler
public void fetchLongLivedOperationWithIDCompletionHandler(java.lang.String operationID, CKContainer.Block_fetchLongLivedOperationWithIDCompletionHandler completionHandler)
-
fetchShareMetadataWithURLCompletionHandler
public void fetchShareMetadataWithURLCompletionHandler(NSURL url, CKContainer.Block_fetchShareMetadataWithURLCompletionHandler completionHandler)
-
fetchShareParticipantWithEmailAddressCompletionHandler
public void fetchShareParticipantWithEmailAddressCompletionHandler(java.lang.String emailAddress, CKContainer.Block_fetchShareParticipantWithEmailAddressCompletionHandler completionHandler)Fetches share participants matching the provided info. [@c] CKFetchShareParticipantsOperation is the more configurable, @c CKOperation -based alternative to these methods.
-
fetchShareParticipantWithPhoneNumberCompletionHandler
public void fetchShareParticipantWithPhoneNumberCompletionHandler(java.lang.String phoneNumber, CKContainer.Block_fetchShareParticipantWithPhoneNumberCompletionHandler completionHandler)
-
fetchShareParticipantWithUserRecordIDCompletionHandler
public void fetchShareParticipantWithUserRecordIDCompletionHandler(CKRecordID userRecordID, CKContainer.Block_fetchShareParticipantWithUserRecordIDCompletionHandler completionHandler)
-
fetchUserRecordIDWithCompletionHandler
public void fetchUserRecordIDWithCompletionHandler(CKContainer.Block_fetchUserRecordIDWithCompletionHandler completionHandler)
If there is no iCloud account configured, or if access is restricted, a @c CKErrorNotAuthenticated error will be returned. This work is treated as having @c NSQualityOfServiceUserInitiated quality of service.
-
init
public CKContainer init()
-
privateCloudDatabase
public CKDatabase privateCloudDatabase()
-
publicCloudDatabase
public CKDatabase publicCloudDatabase()
-
requestApplicationPermissionCompletionHandler
public void requestApplicationPermissionCompletionHandler(long applicationPermission, CKContainer.Block_requestApplicationPermissionCompletionHandler completionHandler)
-
sharedCloudDatabase
public CKDatabase sharedCloudDatabase()
-
statusForApplicationPermissionCompletionHandler
public void statusForApplicationPermissionCompletionHandler(long applicationPermission, CKContainer.Block_statusForApplicationPermissionCompletionHandler completionHandler)
-
-