Class CKShare

    • Constructor Detail

      • CKShare

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static CKShare alloc()
      • allocWithZone

        public static CKShare 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()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • 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)
      • new_objc

        public static CKShare 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()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • URL

        @Nullable
        public @Nullable NSURL URL()
        A URL that can be used to invite participants to this share. Only available after share record has been saved to the server. This url is stable, and is tied to the rootRecord. That is, if you share a rootRecord, delete the share, and re-share the same rootRecord via a newly created share, that newly created share's url will be identical to the prior share's url
      • addParticipant

        public void addParticipant​(@NotNull
                                   @NotNull CKShareParticipant participant)
        If a participant with a matching userIdentity already exists, then that existing participant's properties will be updated; no new participant will be added. In order to modify the list of participants, a share must have publicPermission set to @c CKShareParticipantPermissionNone. That is, you cannot mix-and-match private users and public users in the same share. Only certain participant types may be added via this API
        See Also:
        CKShareParticipantRole
      • currentUserParticipant

        @Nullable
        public @Nullable CKShareParticipant currentUserParticipant()
      • initWithRecordType

        public CKShare initWithRecordType​(@NotNull
                                          @NotNull java.lang.String recordType)
        Description copied from class: CKRecord
        This creates the record in the default zone.
        Overrides:
        initWithRecordType in class CKRecord
      • initWithRootRecord

        public CKShare initWithRootRecord​(@NotNull
                                          @NotNull CKRecord rootRecord)
        When saving a newly created CKShare, you must save the share and its rootRecord in the same CKModifyRecordsOperation batch.
      • initWithRootRecordShareID

        public CKShare initWithRootRecordShareID​(@NotNull
                                                 @NotNull CKRecord rootRecord,
                                                 @NotNull
                                                 @NotNull CKRecordID shareID)
      • owner

        @NotNull
        public @NotNull CKShareParticipant owner()
        Convenience methods for fetching special users from the participant array
      • participants

        @NotNull
        public @NotNull NSArray<? extends CKShareParticipant> participants()
        All participants on the share that the current user has permissions to see. At the minimum that will include the owner and the current user.
      • publicPermission

        public long publicPermission()
        Defines what permission a user has when not explicitly added to the share. Shares with @c publicPermission more permissive than @c CKShareParticipantPermissionNone can be joined by any user with access to the share's shareURL. By default, public permission is @c CKShareParticipantPermissionNone. Changing the public permission to @c CKShareParticipantPermissionReadOnly or @c CKShareParticipantPermissionReadWrite will result in all pending participants being removed. Already-accepted participants will remain on the share. Changing the public permission to @c CKShareParticipantPermissionNone will result in all participants being removed from the share. You may subsequently choose to call @c addParticipant: before saving the share, those participants will be added to the share.
      • removeParticipant

        public void removeParticipant​(@NotNull
                                      @NotNull CKShareParticipant participant)
      • setPublicPermission

        public void setPublicPermission​(long value)
        Defines what permission a user has when not explicitly added to the share. Shares with @c publicPermission more permissive than @c CKShareParticipantPermissionNone can be joined by any user with access to the share's shareURL. By default, public permission is @c CKShareParticipantPermissionNone. Changing the public permission to @c CKShareParticipantPermissionReadOnly or @c CKShareParticipantPermissionReadWrite will result in all pending participants being removed. Already-accepted participants will remain on the share. Changing the public permission to @c CKShareParticipantPermissionNone will result in all participants being removed from the share. You may subsequently choose to call @c addParticipant: before saving the share, those participants will be added to the share.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CKRecord
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
        Overrides:
        copyWithZone in class CKRecord
      • initWithRecordZoneID

        public CKShare initWithRecordZoneID​(@NotNull
                                            @NotNull CKRecordZoneID recordZoneID)
        Creates a zone-wide @c CKShare. A zone-wide @c CKShare can only exist in a zone with sharing capability @c CKRecordZoneCapabilityZoneWideSharing. Only one such share can exist in a zone at a time. All records in this zone will appear in a participant's @c CKFetchRecordZoneChangesOperation results in the shared database after the share has been accepted by the participant. Since these shares do not have an associated root record, @c shouldFetchRootRecord and @c rootRecordDesiredKeys are always ignored when running a @c CKFetchShareMetadataOperation on a zone-wide share URL. Additionally, @c rootRecordID on the resulting @c CKShareMetadata is always absent. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.