GameAuth class abstract

Constructors

GameAuth()

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

isSignedIn Future<bool>
Check to see if the user is currently signed into Game Center or Google Play Games.
no setter

Static Methods

getAuthCode(String clientID) Future<String?>
Retrieve a Google Play Games server_auth_code to be used by a backend, such as Firebase, to authenticate the user. null on other platforms.
signIn() Future<String?>
Sign the user into Game Center or Google Play Games. This must be called before taking any action (such as submitting a score or unlocking an achievement).