C# 클래스 GooglePlayGames.BasicApi.DummyClient

상속: IPlayGamesClient
파일 보기 프로젝트 열기: playgameservices/play-games-plugin-for-unity 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( string>.Action callback, bool silent ) : void

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 ( ) : IntPtr

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 idTokenCallback ) : void

Retrieves an id token, which can be verified server side, if they are logged in.

GetInvitationFromNotification ( ) : Invitation

Gets the invitation from notification.

GetPlayerStats ( PlayerStats>.Action callback ) : void

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 callback ) : void

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 callback ) : void

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 callback ) : void

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 callback ) : void

Loads the achievements for the current player.

LoadFriends ( Action callback ) : void

Load friends of the authenticated user

LoadMoreScores ( GooglePlayGames.BasicApi.ScorePageToken token, int rowCount, Action callback ) : void

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 callback ) : void

Loads the score data for the given leaderboard.

LoadUsers ( string userIds, Action callback ) : void

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 callback ) : void

Reveals the achievement.

SetStepsAtLeast ( string achId, int steps, Action callback ) : void

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 callback ) : void

Shows the achievements UI

ShowLeaderboardUI ( string leaderboardId, LeaderboardTimeSpan span, Action callback ) : void

Shows the leaderboard UI

SignOut ( ) : void

Signs the user out.

SubmitScore ( string leaderboardId, long score, Action callback ) : void

Submits the score.

SubmitScore ( string leaderboardId, long score, string metadata, Action callback ) : void

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 callback ) : void

Unlocks the achievement.

비공개 메소드들

메소드 설명
LogUsage ( ) : void

Logs the usage.

메소드 상세

Authenticate() 공개 메소드

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.
public Authenticate ( string>.Action callback, bool silent ) : void
callback string>.Action Callback when completed.
silent bool If set to true silent.
리턴 void

GetAccessToken() 공개 메소드

Returns an access token.
public GetAccessToken ( ) : string
리턴 string

GetAchievement() 공개 메소드

Returns the achievement corresponding to the passed achievement identifier.
public GetAchievement ( string achId ) : GooglePlayGames.BasicApi.Achievement
achId string Achievement identifier.
리턴 GooglePlayGames.BasicApi.Achievement

GetApiClient() 공개 메소드

Gets the Android API client. Returns null on non-Android players.
public GetApiClient ( ) : IntPtr
리턴 System.IntPtr

GetEventsClient() 공개 메소드

Gets the events client.
public GetEventsClient ( ) : GooglePlayGames.BasicApi.Events.IEventsClient
리턴 GooglePlayGames.BasicApi.Events.IEventsClient

GetFriends() 공개 메소드

Gets the friends.
public GetFriends ( ) : IUserProfile[]
리턴 IUserProfile[]

GetIdToken() 공개 메소드

Retrieves an id token, which can be verified server side, if they are logged in.
public GetIdToken ( Action idTokenCallback ) : void
idTokenCallback Action The callback invoked with the token
리턴 void

GetInvitationFromNotification() 공개 메소드

Gets the invitation from notification.
public GetInvitationFromNotification ( ) : Invitation
리턴 GooglePlayGames.BasicApi.Multiplayer.Invitation

GetPlayerStats() 공개 메소드

Gets the player stats.
public GetPlayerStats ( PlayerStats>.Action callback ) : void
callback PlayerStats>.Action Callback for response.
리턴 void

GetQuestsClient() 공개 메소드

Gets the quests client.
public GetQuestsClient ( ) : GooglePlayGames.BasicApi.Quests.IQuestsClient
리턴 GooglePlayGames.BasicApi.Quests.IQuestsClient

GetRtmpClient() 공개 메소드

Returns a real-time multiplayer client.
public GetRtmpClient ( ) : IRealTimeMultiplayerClient
리턴 IRealTimeMultiplayerClient

GetSavedGameClient() 공개 메소드

Gets the saved game client.
public GetSavedGameClient ( ) : SavedGame.ISavedGameClient
리턴 SavedGame.ISavedGameClient

GetServerAuthCode() 공개 메소드

Asynchronously retrieves the server auth code for this client.
Note: This function is only implemented for Android.
public GetServerAuthCode ( string serverClientId, string>.Action callback ) : void
serverClientId string The Client ID.
callback string>.Action Callback for response.
리턴 void

GetTbmpClient() 공개 메소드

Returns a turn-based multiplayer client.
public GetTbmpClient ( ) : ITurnBasedMultiplayerClient
리턴 ITurnBasedMultiplayerClient

GetToken() 공개 메소드

Retrieves an OAuth 2.0 bearer token for the client.
public GetToken ( ) : string
리턴 string

GetUserDisplayName() 공개 메소드

Returns a human readable name for the user, if they are logged in.
public GetUserDisplayName ( ) : string
리턴 string

GetUserEmail() 공개 메소드

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.
public GetUserEmail ( ) : string
리턴 string

GetUserEmail() 공개 메소드

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.
public GetUserEmail ( string>.Action callback ) : void
callback string>.Action The callback with a status code of the request, /// and string which is the email. It can be null.
리턴 void

GetUserId() 공개 메소드

Returns the authenticated user's ID. Note that this value may change if a user signs on and signs in with a different account.
public GetUserId ( ) : string
리턴 string

GetUserImageUrl() 공개 메소드

Returns the user's avatar url, if they are logged in and have an avatar.
public GetUserImageUrl ( ) : string
리턴 string

HasInvitationFromNotification() 공개 메소드

Determines whether this instance has invitation from notification.
public HasInvitationFromNotification ( ) : bool
리턴 bool

IncrementAchievement() 공개 메소드

Increments the achievement.
public IncrementAchievement ( string achId, int steps, Action callback ) : void
achId string Achievement identifier.
steps int Steps to increment by..
callback Action Callback to invoke when complete.
리턴 void

IsAuthenticated() 공개 메소드

Returns whether or not user is authenticated.
public IsAuthenticated ( ) : bool
리턴 bool

LeaderboardMaxResults() 공개 메소드

Returns the max number of scores returned per call.
public LeaderboardMaxResults ( ) : int
리턴 int

LoadAchievements() 공개 메소드

Loads the achievements for the current player.
public LoadAchievements ( Action callback ) : void
callback Action Callback to invoke when completed.
리턴 void

LoadFriends() 공개 메소드

Load friends of the authenticated user
public LoadFriends ( Action callback ) : void
callback Action Callback invoked when complete. bool argument /// indicates success.
리턴 void

LoadMoreScores() 공개 메소드

Loads the more scores for the leaderboard.
The token is accessed by calling LoadScores() with a positive row count.
public LoadMoreScores ( GooglePlayGames.BasicApi.ScorePageToken token, int rowCount, Action callback ) : void
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

LoadScores() 공개 메소드

Loads the score data for the given leaderboard.
public LoadScores ( string leaderboardId, LeaderboardStart start, int rowCount, LeaderboardCollection collection, LeaderboardTimeSpan timeSpan, Action callback ) : void
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

LoadUsers() 공개 메소드

Loads the players specified.
This is mainly used by the leaderboard APIs to get the information of a high scorer.
public LoadUsers ( string userIds, Action callback ) : void
userIds string User identifiers.
callback Action Callback to invoke when completed.
리턴 void

RegisterInvitationDelegate() 공개 메소드

Registers the invitation delegate.
public RegisterInvitationDelegate ( InvitationReceivedDelegate invitationDelegate ) : void
invitationDelegate InvitationReceivedDelegate Invitation delegate.
리턴 void

RevealAchievement() 공개 메소드

Reveals the achievement.
public RevealAchievement ( string achId, Action callback ) : void
achId string Achievement identifier.
callback Action Callback to invoke when complete.
리턴 void

SetStepsAtLeast() 공개 메소드

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.
public SetStepsAtLeast ( string achId, int steps, Action callback ) : void
achId string Achievement identifier.
steps int Steps to increment to at least.
callback Action Callback to invoke when complete.
리턴 void

ShowAchievementsUI() 공개 메소드

Shows the achievements UI
public ShowAchievementsUI ( Action callback ) : void
callback Action Callback to invoke when complete.
리턴 void

ShowLeaderboardUI() 공개 메소드

Shows the leaderboard UI
public ShowLeaderboardUI ( string leaderboardId, LeaderboardTimeSpan span, Action callback ) : void
leaderboardId string Leaderboard identifier.
span LeaderboardTimeSpan Timespan to display.
callback Action Callback to invoke when complete.
리턴 void

SignOut() 공개 메소드

Signs the user out.
public SignOut ( ) : void
리턴 void

SubmitScore() 공개 메소드

Submits the score.
public SubmitScore ( string leaderboardId, long score, Action callback ) : void
leaderboardId string Leaderboard identifier.
score long Score to submit.
callback Action Callback to invoke when complete.
리턴 void

SubmitScore() 공개 메소드

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).
public SubmitScore ( string leaderboardId, long score, string metadata, Action callback ) : void
leaderboardId string Leaderboard identifier.
score long Score value to submit.
metadata string Metadata about the score.
callback Action Callback upon completion.
리턴 void

UnlockAchievement() 공개 메소드

Unlocks the achievement.
public UnlockAchievement ( string achId, Action callback ) : void
achId string Achievement identifier.
callback Action Callback to invoke when complete.
리턴 void