Contents

authenticate(completionHandler:)

Initializes the local player on the device.

Declaration

func authenticate(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func authenticate() async throws

Parameters

  • completionHandler:

    A block to call when the player initializes or when an error occurs.

    The block takes the following parameter:

    error

    This parameter is nil if the player successfully initializes. Otherwise, it contains an error object that describes the error that occurrs.

Discussion

For more information, see Authenticating a player.

See Also

Deprecated methods