PlayersClient class abstract

Provides APIs for obtaining player information.

Constructors

PlayersClient()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

gameTrialProcessHandler(GameTrialProcess process, MethodCall call) Future<void>
Method handler for gameTrialProcess callback.
getCachePlayerId() Future<String>
Obtains the locally cached player ID of the current player.
getCurrentPlayer() Future<Player>
Obtains the Player object of the current player. Only getOpenId, getUnionId, getAccessToken, and getOpenIdSign in the Player object returned by the AppTouch business have values.
getGamePlayer({bool? isRequirePlayerId}) Future<Player>
Obtains the Player object of the current player. In the returned Player object, only the getDisplayName, getOpenId, getUnionId, and getAccessToken methods have return values. For other methods, a null value is returned.
getPlayerExtraInfo(String transactionId) Future<PlayerExtraInfo>
Obtains the additional information about a player.
savePlayerInfo(AppPlayerInfo appPlayerInfo) Future<void>
Saves the information about the player in the current game.
setGameTrialProcess(GameTrialProcess processCallback) Future<void>
Listens to trial duration expiration.
submitPlayerEvent(String eventId, String eventType, {String? playerId}) Future<String>
Reports player behavior events.