RegisterCallback typedef

RegisterCallback = void Function(PlayerRegisterResponse? response, Exception? error)

Callback function type for player registration responses.

Defines the signature for a callback function that handles the result of a player registration request.

Arguments:

  • response: The PlayerRegisterResponse object if the registration was successful.
  • error: An Exception object if an error occurred.

Implementation

typedef RegisterCallback = void Function(
    PlayerRegisterResponse? response, Exception? error);