PlayGameService class

Main Class, provider useful method

Constructors

PlayGameService()

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

increment(String achivementId) Future<PluginResult>
loadSnapShot(String name) Future<LoadSnapshotResult>
Get the snapshot data with the given name @param name the snapshot's name you want get
saveSnapShot(String name, Uint8List data, String description) Future<PluginResult>
Save data to the snapshot with the given name @param name the snapshot's name @param data a byte array you want to save @param description the description of the snapshot, will add to it's metedata
showAchievements() → void
showLeaderboards() → void
signIn({bool scopeSnapShot = false}) Future<SignInResult>
SignIn with google account, before you do anything, you must sign in @param scopeSnapShot set to ture if you want play with snapshots
submitScore(String leaderBoardId, int score) Future<PluginResult>