Player class abstract
Constructors
- Player()
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 Properties
-
isMultiplayerGamingRestricted
→ Future<
bool?> -
Check if the current player is restricted from joining multiplayer games (always false on Android).
no setter
-
isPersonalizedCommunicationRestricted
→ Future<
bool?> -
Check if the current player is restricted from using personalized communication on
the device (always false on Android).
no setter
-
isUnderage
→ Future<
bool?> -
Check if the current player is underage (always false on Android).
no setter
Static Methods
-
getPlayerHiResImage(
) → Future< String?> - Get the player's hi-res profile image as a base64 encoded String.
-
getPlayerIconImage(
) → Future< String?> - Get the player's icon-size profile image as a base64 encoded String.
-
getPlayerID(
) → Future< String?> - Get the current player's ID. On iOS/macOS the player ID is unique for your game but not other games.
-
getPlayerName(
) → Future< String?> - Get the current player's name. On iOS/macOS the player's alias is provided.
-
getPlayerScore(
{dynamic iOSLeaderboardID = "", dynamic androidLeaderboardID = ""}) → Future< int?> - Get the current player's score for a specific leaderboard.
-
hideAccessPoint(
) → Future< String?> - Hide the Game Center Access Point.
-
showAccessPoint(
AccessPointLocation location) → Future< String?> - Show the Game Center Access Point for the current player.