Class VSAccountManager

  • All Implemented Interfaces:
    NSObject

    public class VSAccountManager
    extends NSObject
    A VSAccountManager instance coordinates access to a subscriber's account.
    • Constructor Detail

      • VSAccountManager

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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object 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()
      • version_static

        public static long version_static()
      • checkAccessStatusWithOptionsCompletionHandler

        public void checkAccessStatusWithOptionsCompletionHandler​(NSDictionary<java.lang.String,​?> options,
                                                                  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

        public 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

        public VSAccountManagerResult enqueueAccountMetadataRequestCompletionHandler​(VSAccountMetadataRequest request,
                                                                                     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​(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​(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.