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 -> VSAccountAccessStatusParameters
- 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
nilif the operation completed successfully.