Class CKContainer

  • All Implemented Interfaces:
    NSObject

    public class CKContainer
    extends NSObject
    This class should not be subclassed. If it is, Sendable may no longer apply. API-Since: 8.0
    • Constructor Detail

      • CKContainer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CKContainer allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • containerWithIdentifier

        @NotNull
        public static @NotNull CKContainer containerWithIdentifier​(@NotNull
                                                                   @NotNull 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

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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​(@NotNull
                                 @NotNull CKOperation operation)
      • containerIdentifier

        @Nullable
        public @Nullable java.lang.String containerIdentifier()
      • databaseWithDatabaseScope

        @NotNull
        public @NotNull CKDatabase databaseWithDatabaseScope​(long databaseScope)
        Convenience methods
        Returns:
        a database that's pointer-equal to one of the above properties@enum API-Since: 10.0
      • discoverAllIdentitiesWithCompletionHandler

        @Deprecated
        public void discoverAllIdentitiesWithCompletionHandler​(@NotNull
                                                               @NotNull CKContainer.Block_discoverAllIdentitiesWithCompletionHandler completionHandler)
        Deprecated.
        Fetches all user identities that match an entry in the user's contacts database. [@c] CKDiscoverAllUserIdentitiesOperation is the more configurable, @c CKOperation -based alternative to this methods API-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • discoverUserIdentityWithEmailAddressCompletionHandler

        @Deprecated
        public void discoverUserIdentityWithEmailAddressCompletionHandler​(@NotNull
                                                                          @NotNull java.lang.String email,
                                                                          @NotNull
                                                                          @NotNull CKContainer.Block_discoverUserIdentityWithEmailAddressCompletionHandler completionHandler)
        Deprecated.
        Fetches the user identity that corresponds to the given email address. 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 API-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • discoverUserIdentityWithPhoneNumberCompletionHandler

        @Deprecated
        public void discoverUserIdentityWithPhoneNumberCompletionHandler​(@NotNull
                                                                         @NotNull java.lang.String phoneNumber,
                                                                         @NotNull
                                                                         @NotNull CKContainer.Block_discoverUserIdentityWithPhoneNumberCompletionHandler completionHandler)
        Deprecated.
        Fetches the user identity that corresponds to the given phone number. 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 API-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • discoverUserIdentityWithUserRecordIDCompletionHandler

        @Deprecated
        public void discoverUserIdentityWithUserRecordIDCompletionHandler​(@NotNull
                                                                          @NotNull CKRecordID userRecordID,
                                                                          @NotNull
                                                                          @NotNull CKContainer.Block_discoverUserIdentityWithUserRecordIDCompletionHandler completionHandler)
        Deprecated.
        Fetches the user identity that corresponds to the given user record id. 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 API-Since: 10.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • fetchAllLongLivedOperationIDsWithCompletionHandler

        public void fetchAllLongLivedOperationIDsWithCompletionHandler​(@NotNull
                                                                       @NotNull 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. API-Since: 9.3
      • fetchShareParticipantWithEmailAddressCompletionHandler

        public void fetchShareParticipantWithEmailAddressCompletionHandler​(@NotNull
                                                                           @NotNull java.lang.String emailAddress,
                                                                           @NotNull
                                                                           @NotNull CKContainer.Block_fetchShareParticipantWithEmailAddressCompletionHandler completionHandler)
        Fetches share participants matching the provided info. [@c] CKFetchShareParticipantsOperation is the more configurable, @c CKOperation -based alternative to these methods. API-Since: 10.0
      • fetchUserRecordIDWithCompletionHandler

        public void fetchUserRecordIDWithCompletionHandler​(@NotNull
                                                           @NotNull 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

        @NotNull
        public @NotNull CKDatabase privateCloudDatabase()
      • publicCloudDatabase

        @NotNull
        public @NotNull CKDatabase publicCloudDatabase()
      • requestApplicationPermissionCompletionHandler

        @Deprecated
        public void requestApplicationPermissionCompletionHandler​(long applicationPermission,
                                                                  @NotNull
                                                                  @NotNull CKContainer.Block_requestApplicationPermissionCompletionHandler completionHandler)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • sharedCloudDatabase

        @NotNull
        public @NotNull CKDatabase sharedCloudDatabase()
        API-Since: 10.0
      • statusForApplicationPermissionCompletionHandler

        @Deprecated
        public void statusForApplicationPermissionCompletionHandler​(long applicationPermission,
                                                                    @NotNull
                                                                    @NotNull CKContainer.Block_statusForApplicationPermissionCompletionHandler completionHandler)
        Deprecated.
        API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: No longer supported. Please see Sharing CloudKit Data with Other iCloud Users.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.