authenticate(completionHandler:)
Initializes the local player on the device.
Declaration
func authenticate(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func authenticate() async throwsParameters
- completionHandler:
A block to call when the player initializes or when an error occurs.
The block takes the following parameter:
- error
This parameter is
nilif the player successfully initializes. Otherwise, it contains an error object that describes the error that occurrs.
Discussion
For more information, see Authenticating a player.