enqueue(_:completionHandler:)
Submits a request for subscriber account information.
Declaration
func enqueue(_ request: VSAccountMetadataRequest, completionHandler: @escaping (VSAccountMetadata?, (any Error)?) -> Void) -> VSAccountManagerResultParameters
- request:
A Vsaccountmetadatarequest object that contains the information that your app requests.
- completionHandler:
The closure that the account manager executes after the request completes. This closure has no return value and takes the following parameters:
- metadata
A Vsaccountmetadata object that contains the requested information if the request was successful.
- error
An error object that contains information about a problem, or
nilif the operation completed successfully.
Return Value
Returns a VSAccountManagerResult object that your app can use with cancel() to cancel the request.