Class NSPersistentCloudKitContainer

    • Constructor Detail

      • NSPersistentCloudKitContainer

        protected NSPersistentCloudKitContainer​(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()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultDirectoryURL

        public static NSURL defaultDirectoryURL()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initializeCloudKitSchemaWithOptionsError

        public boolean initializeCloudKitSchemaWithOptionsError​(long options,
                                                                org.moe.natj.general.ptr.Ptr<NSError> error)
        This method creates a set of representative CKRecord instances for all stores in the container that use Core Data with CloudKit and uploads them to CloudKit. These records are "fully saturated" in that they have a representative value set for every field Core Data might serialize for the given managed object model. After records are successfully uploaded the schema will be visible in the CloudKit dashboard and the representative records will be deleted. This method returns YES if these operations succeed, or NO and the underlying error if they fail. Note: This method also validates the managed object model in use for a store, so a validation error may be returned if the model is not valid for use with CloudKit.
      • 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()
      • recordForManagedObjectID

        public CKRecord recordForManagedObjectID​(NSManagedObjectID managedObjectID)
        These methods provide access to the underlying CKRecord, or CKRecordID, backing a given NSManagedObjectID.
      • 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()
      • canDeleteRecordForManagedObjectWithID

        public boolean canDeleteRecordForManagedObjectWithID​(NSManagedObjectID objectID)
      • canModifyManagedObjectsInStore

        public boolean canModifyManagedObjectsInStore​(NSPersistentStore store)
        canModifyManagedObjectsInStore indicates whether or not a given store is mutable when used with CloudKit. This method return YES if the current user has write permissions to the CKDatabase that backs the store. For example: - When using the Public database, devices without an iCloud account can read data but not write any. - When using the Private database, this method always returns YES, even if no iCloud account is present on the device.
      • canUpdateRecordForManagedObjectWithID

        public boolean canUpdateRecordForManagedObjectWithID​(NSManagedObjectID objectID)
        canUpdateRecordForManagedObjectWithID / canDeleteRecordForManagedObjectWithID indicate whether or not a given object assigned the provided NSManagedObjectID is mutable with respect to the instance of CKRecord that backs it with CloudKit. In order for canUpdateRecordForManagedObjectWithID / canDeleteRecordForManagedObjectWithID to return YES, -[NSPersistentCloudKitContainer canModifyManagedObjectsInStore] must also be YES. Returns YES if any of the following conditions are true: - The provided objectID is a temporary objectID - The provided objectID is assigned to a store not backed by a CKDatabase - The provided objectID is assigned to a store backed by the Private CKDatabase - The provided objectID is assigned to a store backed by the Public CKDatabase AND one of the following conditions is met: - The object has yet to be uploaded to CloudKit (it will be assigned to the current user) - The object has already been uploaded to CloudKit and is owned (indicated by CKRecord.creatorUserRecordID) by the current user