Class CKSyncEngineAccountChangeEvent

  • All Implemented Interfaces:
    NSObject

    public class CKSyncEngineAccountChangeEvent
    extends CKSyncEngineEvent
    The user signed in or out of their account. The sync engine automatically listens for account changes, and it will send this event when the user signs in or out. It's your responsibility to react appropriately to this change and update your local persistence. When the logged-in account changes, the sync engine will reset its internal state under the hood. This means that it will clear any pending database or record zone changes that you may have added. Note that it's possible the account changes multiple times while your app is quit. If this happens, you will only receive one account change event representing the transition between the last known state and the current state. API-Since: 17.0
    • Constructor Detail

      • CKSyncEngineAccountChangeEvent

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

      • accessInstanceVariablesDirectly

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

        public long changeType()
        The type of account change that occurred.
      • classFallbacksForKeyedArchiver

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

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

        @Nullable
        public @Nullable CKRecordID currentUser()
        The user record ID for the current user. If the user just signed in or switched accounts, this will be the new user record ID. If the user signed out, this will be `nil`.
      • 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)
      • previousUser

        @Nullable
        public @Nullable CKRecordID previousUser()
        The user record ID for the previous user. If the user just signed in, this will be `nil`. If the user signed out or switched accounts, this will be the old account.
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()