Class VSAccountManager

  • All Implemented Interfaces:
    NSObject

    public class VSAccountManager
    extends NSObject
    A VSAccountManager instance coordinates access to a subscriber's account. API-Since: 10.0
    • Constructor Detail

      • VSAccountManager

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static VSAccountManager 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)
      • 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()
      • checkAccessStatusWithOptionsCompletionHandler

        public void checkAccessStatusWithOptionsCompletionHandler​(@NotNull
                                                                  @NotNull NSDictionary<java.lang.String,​?> options,
                                                                  @NotNull
                                                                  @NotNull VSAccountManager.Block_checkAccessStatusWithOptionsCompletionHandler completionHandler)
        Determine the state of the application's access to the user's subscription information.
        Parameters:
        options - The only currently supported option key is VSCheckAccessOptionPrompt.
        completionHandler - A block to be called when the request finishes. It will always be called exactly once. It may be called before the method call returns. It may be called on any queue.
        accessStatus - The current state the application's access to the user's subscription information.
        error - If the user did not grant access to the app, this will contain an error describing the result of the operation.
      • delegate

        @Nullable
        public @Nullable VSAccountManagerDelegate delegate()
        An object that can help the account manager by presenting and dismissing view controllers when needed, and deciding whether to allow authentication with the selected provider. Some requests may fail if a delegate is not provided. For example, an account metadata request may require a delegate if it allows interruption.
      • enqueueAccountMetadataRequestCompletionHandler

        @NotNull
        public @NotNull VSAccountManagerResult enqueueAccountMetadataRequestCompletionHandler​(@NotNull
                                                                                              @NotNull VSAccountMetadataRequest request,
                                                                                              @NotNull
                                                                                              @NotNull VSAccountManager.Block_enqueueAccountMetadataRequestCompletionHandler completionHandler)
        Begins requesting information about the subscriber's account. [@returns] A result object that may be used to cancel the in-flight request. Cancellation is advisory, and does not guarantee that the request will finish immediately.
        Parameters:
        request - This identifies what specific information the app wants to know.
        completionHandler - A block to be called when the request finishes. It will always be called exactly once. It may be called before the method call returns. It may be called on any queue.
        metadata - If the request finished successfully, this will contain information about the subscriber's account.
        error - If the request did not finish successfully, this will contain an error describing the result of the operation.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable VSAccountManagerDelegate value)
        An object that can help the account manager by presenting and dismissing view controllers when needed, and deciding whether to allow authentication with the selected provider. Some requests may fail if a delegate is not provided. For example, an account metadata request may require a delegate if it allows interruption.
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable VSAccountManagerDelegate value)
        An object that can help the account manager by presenting and dismissing view controllers when needed, and deciding whether to allow authentication with the selected provider. Some requests may fail if a delegate is not provided. For example, an account metadata request may require a delegate if it allows interruption.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.