Contents

checkAccessStatus(options:completionHandler:)

Checks your app’s access to user subscription information, and requests access if needed.

Declaration

func checkAccessStatus(options: [VSCheckAccessOption : Any] = [:], completionHandler: @escaping  @Sendable (VSAccountAccessStatus, (any Error)?) -> Void)
func checkAccessStatus(options: [VSCheckAccessOption : Any] = [:]) async throws -> VSAccountAccessStatus

Parameters

  • options:

    The options you use to check access status. For a list of possible options, see Vscheckaccessoption.

  • completionHandler:

    The closure the account manager executes after it checks your app’s access status. This closure has no return value and takes the following parameters:

    accessStatus

    The access status of your app. For a list of possible values, see Vsaccountaccessstatus.

    error

    An error object that contains information about a problem, or nil if the operation completed successfully.

See Also

Checking access status