Class 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.
    • Constructor Detail

      • CKContainer

        protected CKContainer​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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()
      • 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
      • 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.
      • 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.
      • 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.
      • privateCloudDatabase

        public CKDatabase privateCloudDatabase()
      • publicCloudDatabase

        public CKDatabase publicCloudDatabase()
      • sharedCloudDatabase

        public CKDatabase sharedCloudDatabase()