메소드 | 설명 | |
---|---|---|
Authenticate ( string>.Action |
Starts the authentication process. If silent == true, no UIs will be shown (if UIs are needed, it will fail rather than show them). If silent == false, this may show UIs, consent dialogs, etc. At the end of the process, callback will be invoked to notify of the result. Once the callback returns true, the user is considered to be authenticated forever after. |
|
GetAccessToken ( ) : string |
Returns an access token.
|
|
GetAchievement ( string achId ) : GooglePlayGames.BasicApi.Achievement |
Returns the achievement corresponding to the passed achievement identifier.
|
|
GetApiClient ( ) : |
Gets the Android API client. Returns null on non-Android players.
|
|
GetEventsClient ( ) : GooglePlayGames.BasicApi.Events.IEventsClient |
Gets the events client.
|
|
GetFriends ( ) : IUserProfile[] |
Gets the friends.
|
|
GetIdToken ( Action |
Retrieves an id token, which can be verified server side, if they are logged in.
|
|
GetInvitationFromNotification ( ) : |
Gets the invitation from notification.
|
|
GetPlayerStats ( PlayerStats>.Action |
Gets the player stats.
|
|
GetQuestsClient ( ) : GooglePlayGames.BasicApi.Quests.IQuestsClient |
Gets the quests client.
|
|
GetRtmpClient ( ) : IRealTimeMultiplayerClient |
Returns a real-time multiplayer client.
|
|
GetSavedGameClient ( ) : SavedGame.ISavedGameClient |
Gets the saved game client.
|
|
GetServerAuthCode ( string serverClientId, string>.Action |
Asynchronously retrieves the server auth code for this client. Note: This function is only implemented for Android. |
|
GetTbmpClient ( ) : ITurnBasedMultiplayerClient |
Returns a turn-based multiplayer client.
|
|
GetToken ( ) : string |
Retrieves an OAuth 2.0 bearer token for the client.
|
|
GetUserDisplayName ( ) : string |
Returns a human readable name for the user, if they are logged in.
|
|
GetUserEmail ( ) : string |
Gets the user's email. The email address returned is selected by the user from the accounts present on the device. There is no guarantee this uniquely identifies the player. For unique identification use the id property of the local player. The user can also choose to not select any email address, meaning it is not available. |
|
GetUserEmail ( string>.Action |
Gets the user's email with a callback. The email address returned is selected by the user from the accounts present on the device. There is no guarantee this uniquely identifies the player. For unique identification use the id property of the local player. The user can also choose to not select any email address, meaning it is not available. |
|
GetUserId ( ) : string |
Returns the authenticated user's ID. Note that this value may change if a user signs on and signs in with a different account.
|
|
GetUserImageUrl ( ) : string |
Returns the user's avatar url, if they are logged in and have an avatar.
|
|
HasInvitationFromNotification ( ) : bool |
Determines whether this instance has invitation from notification.
|
|
IncrementAchievement ( string achId, int steps, Action |
Increments the achievement.
|
|
IsAuthenticated ( ) : bool |
Returns whether or not user is authenticated.
|
|
LeaderboardMaxResults ( ) : int |
Returns the max number of scores returned per call.
|
|
LoadAchievements ( Action |
Loads the achievements for the current player.
|
|
LoadFriends ( Action |
Load friends of the authenticated user
|
|
LoadMoreScores ( GooglePlayGames.BasicApi.ScorePageToken token, int rowCount, Action |
Loads the more scores for the leaderboard. The token is accessed by calling LoadScores() with a positive row count. |
|
LoadScores ( string leaderboardId, LeaderboardStart start, int rowCount, LeaderboardCollection collection, LeaderboardTimeSpan timeSpan, Action |
Loads the score data for the given leaderboard.
|
|
LoadUsers ( string userIds, Action |
Loads the players specified. This is mainly used by the leaderboard APIs to get the information of a high scorer. |
|
RegisterInvitationDelegate ( InvitationReceivedDelegate invitationDelegate ) : void |
Registers the invitation delegate.
|
|
RevealAchievement ( string achId, Action |
Reveals the achievement.
|
|
SetStepsAtLeast ( string achId, int steps, Action |
Set an achievement to have at least the given number of steps completed. Calling this method while the achievement already has more steps than the provided value is a no-op. Once the achievement reaches the maximum number of steps, the achievement is automatically unlocked, and any further mutation operations are ignored. |
|
ShowAchievementsUI ( Action |
Shows the achievements UI
|
|
ShowLeaderboardUI ( string leaderboardId, LeaderboardTimeSpan span, Action |
Shows the leaderboard UI
|
|
SignOut ( ) : void |
Signs the user out.
|
|
SubmitScore ( string leaderboardId, long score, Action |
Submits the score.
|
|
SubmitScore ( string leaderboardId, long score, string metadata, Action |
Submits the score for the currently signed-in player to the leaderboard associated with a specific id and metadata (such as something the player did to earn the score).
|
|
UnlockAchievement ( string achId, Action |
Unlocks the achievement.
|
메소드 | 설명 | |
---|---|---|
LogUsage ( ) : void |
Logs the usage.
|
public Authenticate ( string>.Action |
||
callback | string>.Action | Callback when completed. |
silent | bool | If set to |
리턴 | void |
public GetAchievement ( string achId ) : GooglePlayGames.BasicApi.Achievement | ||
achId | string | Achievement identifier. |
리턴 | GooglePlayGames.BasicApi.Achievement |
public GetEventsClient ( ) : GooglePlayGames.BasicApi.Events.IEventsClient | ||
리턴 | GooglePlayGames.BasicApi.Events.IEventsClient |
public GetIdToken ( Action |
||
idTokenCallback | Action |
The callback invoked with the token |
리턴 | void |
public GetInvitationFromNotification ( ) : |
||
리턴 |
public GetPlayerStats ( PlayerStats>.Action |
||
callback | PlayerStats>.Action | Callback for response. |
리턴 | void |
public GetQuestsClient ( ) : GooglePlayGames.BasicApi.Quests.IQuestsClient | ||
리턴 | GooglePlayGames.BasicApi.Quests.IQuestsClient |
public GetRtmpClient ( ) : IRealTimeMultiplayerClient | ||
리턴 | IRealTimeMultiplayerClient |
public GetSavedGameClient ( ) : SavedGame.ISavedGameClient | ||
리턴 | SavedGame.ISavedGameClient |
public GetServerAuthCode ( string serverClientId, string>.Action |
||
serverClientId | string | The Client ID. |
callback | string>.Action | Callback for response. |
리턴 | void |
public GetTbmpClient ( ) : ITurnBasedMultiplayerClient | ||
리턴 | ITurnBasedMultiplayerClient |
public GetUserEmail ( string>.Action |
||
callback | string>.Action | The callback with a status code of the request, /// and string which is the email. It can be null. |
리턴 | void |
public IncrementAchievement ( string achId, int steps, Action |
||
achId | string | Achievement identifier. |
steps | int | Steps to increment by.. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public LoadAchievements ( Action |
||
callback | Action |
Callback to invoke when completed. |
리턴 | void |
public LoadFriends ( Action |
||
callback | Action |
Callback invoked when complete. bool argument /// indicates success. |
리턴 | void |
public LoadMoreScores ( GooglePlayGames.BasicApi.ScorePageToken token, int rowCount, Action |
||
token | GooglePlayGames.BasicApi.ScorePageToken | Token used to start loading scores. |
rowCount | int | Max number of scores to return. /// This can be limited by the SDK. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public LoadScores ( string leaderboardId, LeaderboardStart start, int rowCount, LeaderboardCollection collection, LeaderboardTimeSpan timeSpan, Action |
||
leaderboardId | string | Leaderboard identifier. |
start | LeaderboardStart | Start indicating the top scores or player centric |
rowCount | int | Row count. |
collection | LeaderboardCollection | Collection to display. |
timeSpan | LeaderboardTimeSpan | Time span. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public LoadUsers ( string userIds, Action |
||
userIds | string | User identifiers. |
callback | Action |
Callback to invoke when completed. |
리턴 | void |
public RegisterInvitationDelegate ( InvitationReceivedDelegate invitationDelegate ) : void | ||
invitationDelegate | InvitationReceivedDelegate | Invitation delegate. |
리턴 | void |
public RevealAchievement ( string achId, Action |
||
achId | string | Achievement identifier. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public SetStepsAtLeast ( string achId, int steps, Action |
||
achId | string | Achievement identifier. |
steps | int | Steps to increment to at least. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public ShowAchievementsUI ( Action |
||
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public ShowLeaderboardUI ( string leaderboardId, LeaderboardTimeSpan span, Action |
||
leaderboardId | string | Leaderboard identifier. |
span | LeaderboardTimeSpan | Timespan to display. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public SubmitScore ( string leaderboardId, long score, Action |
||
leaderboardId | string | Leaderboard identifier. |
score | long | Score to submit. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |
public SubmitScore ( string leaderboardId, long score, string metadata, Action |
||
leaderboardId | string | Leaderboard identifier. |
score | long | Score value to submit. |
metadata | string | Metadata about the score. |
callback | Action |
Callback upon completion. |
리턴 | void |
public UnlockAchievement ( string achId, Action |
||
achId | string | Achievement identifier. |
callback | Action |
Callback to invoke when complete. |
리턴 | void |