回呼
非同步呼叫目標的支持者。
摘要
包括用於存取子方法引數的一次性回呼,以及在 GameServices 建構時間設定的多用途回呼。
所有回呼都會在專屬的回呼執行緒上叫用。這個執行緒可能與「主執行緒」的任何平台概念不同或「UI 執行緒」停滯的回呼執行緒可能會造成使用者顯而易見的問題,例如延遲完成登出要求,因此使用者回呼應快速執行。
您不應在回呼中叫用封鎖 GPG API (例如 Leaderboards().FetchAllBlocking()),因為這類呼叫會造成死結。
Typedefs |
|
---|---|
CaptureCapabilitiesCallback
|
typedefstd::function< void(GetCaptureCapabilitiesResponse const &)>
定義接收 GetCaptureCapabilitiesResponse 的回呼類型。 |
CaptureStateCallback
|
typedefstd::function< void(GetCaptureStateResponse const &)>
定義接收 GetCaptureStateResponse 的回呼類型。 |
CommitCallback
|
typedefstd::function< void(CommitResponse const &)>
定義接收 CommitResponse 的回呼類型。 |
ConnectionRequestCallback
|
typedefstd::function< void(int64_t client_id, ConnectionRequest const &request)>
定義在遠端端點嘗試連線至應用程式自有端點時,接收 ConnectionRequest 的回呼類型。 |
FetchAllCallback
|
typedefstd::function< void(FetchAllResponse const &)>
定義接收 FetchAllResponse 的回呼類型。 |
FetchAllCallback
|
typedefstd::function< void(FetchAllResponse const &)>
定義接收 FetchAllResponse 的回呼類型。 |
FetchAllCallback
|
typedefstd::function< void(FetchAllResponse const &)>
定義 FetchAllResponse 類型回呼。 |
FetchAllCallback
|
typedefstd::function< void(FetchAllResponse const &)>
定義接收 FetchAllResponse 的回呼類型。 |
FetchAllScoreSummariesCallback
|
typedefstd::function< void(FetchAllScoreSummariesResponse const &)>
定義 FetchAllScoreSummariesResponse 類型回呼。 |
FetchCallback
|
typedefstd::function< void(FetchResponse const &)>
定義接收 FetchResponse 的回呼類型。 |
FetchCallback
|
typedefstd::function< void(const FetchResponse &)>
定義接收 FetchResponse 的回呼類型。 |
FetchCallback
|
typedefstd::function< void(FetchResponse const &)>
定義接收 FetchResponse 的回呼類型。 |
FetchCallback
|
typedefstd::function< void(FetchResponse const &)>
定義接收 FetchResponse 的回呼類型。 |
FetchForPlayerCallback
|
typedefstd::function< void(FetchForPlayerResponse const &)>
定義接收 FetchForPlayerResponse 的回呼類型。 |
FetchListCallback
|
typedefstd::function< void(FetchListResponse const &)>
定義接收 FetchListResponse 的回呼類型。 |
FetchScorePageCallback
|
typedefstd::function< void(FetchScorePageResponse const &)>
定義 ScorePageResponse 類型回呼。 |
FetchScoreSummaryCallback
|
typedefstd::function< void(FetchScoreSummaryResponse const &)>
定義 FetchScoreSummaryResponse 類型回呼。 |
FetchSelfCallback
|
typedefstd::function< void(FetchSelfResponse const &)>
定義接收 FetchSelfResponse 的回呼類型。 |
FetchServerAuthCodeCallback
|
typedefstd::function< void(FetchServerAuthCodeResponse const &)>
定義接收 FetchServerAuthCodeResponse 的回呼類型。 |
FlushCallback
|
typedefstd::function< void(FlushStatus)>
定義接收 Flush 作業結果 (狀態) 的回呼類型。 |
IsCaptureAvailableCallback
|
typedefstd::function< void(IsCaptureAvailableResponse const &)>
定義接收 IsCaptureAvailableResponse 的回呼類型。 |
OnAuthActionFinishedCallback
|
typedefstd::function< void(AuthOperation, AuthStatus)>
已完成可提供給 SDK 的驗證動作類型。 |
OnAuthActionStartedCallback
|
typedefstd::function< void(AuthOperation)>
可提供給 SDK 的驗證動作啟動回呼類型。 |
OnInitializationFinishedCallback
|
typedefstd::function< void(InitializationStatus)>
應用程式叫用 API 的初始化,或初始化失敗時的回呼。 |
OnLogCallback
|
typedefstd::function< void(LogLevel, std::string const &)>
可提供給 SDK 的記錄回呼類型。 |
OnLogCallback
|
typedefstd::function< void(LogLevel, std::string const &)>
可提供給 SDK 的記錄回呼類型。 |
OnMultiplayerInvitationEventCallback
|
typedefstd::function< void(MultiplayerEvent, std::string, MultiplayerInvitation)>
可提供給 SDK 的多人遊戲邀請回呼類型。 |
OnTurnBasedMatchEventCallback
|
typedefstd::function< void(MultiplayerEvent event, std::string, TurnBasedMatch)>
可提供給 SDK 的回合製多人遊戲事件回呼類型。 |
OpenCallback
|
typedefstd::function< void(OpenResponse const &)>
定義接收 OpenResponse 的回呼類型。 |
ReadCallback
|
typedefstd::function< void(ReadResponse const &)>
定義接收 ReadResponse 的回呼類型。 |
ShowAllUICallback
|
typedefstd::function< void(UIStatus const &)>
定義接收 UIStatus 的回呼類型。 |
ShowAllUICallback
|
typedefstd::function< void(UIStatus const &)>
定義接收 UIStatus 的回呼類型。 |
ShowUICallback
|
typedefstd::function< void(UIStatus const &)>
定義接收 UIStatus 的回呼類型。 |
StartAdvertisingCallback
|
typedefstd::function< void(int64_t client_id, StartAdvertisingResult const &result)>
定義在本機端點廣告嘗試完成時接收 StartAdvertisingResult 的回呼類型。的成功欄位會指出廣告是否已經順利開始。 |
Typedefs
CaptureCapabilitiesCallback
std::function< void(GetCaptureCapabilitiesResponse const &)> CaptureCapabilitiesCallback
定義接收 GetCaptureCapabilitiesResponse 的回呼類型。
這個回呼類型提供給下方的 GetCaptureCapabilities(*)
函式。
CaptureStateCallback
std::function< void(GetCaptureStateResponse const &)> CaptureStateCallback
定義接收 GetCaptureStateResponse 的回呼類型。
這個回呼類型提供給下方的 GetCaptureState(*)
函式。
CommitCallback
std::function< void(CommitResponse const &)> CommitCallback
定義接收 CommitResponse
的回呼類型。
這個回呼類型會提供給下方的 Commit(*)
和 ResolveConflict(*)
函式。
ConnectionRequestCallback
std::function< void(int64_t client_id, ConnectionRequest const &request)> ConnectionRequestCallback
定義在遠端端點嘗試連線至應用程式自有端點時,接收 ConnectionRequest 的回呼類型。
client_id
是收到這項要求的 NearbyConnections
執行個體 ID。request
包含連線要求的詳細資料。
FetchAllCallback
std::function< void(FetchAllResponse const &)> FetchAllCallback
定義接收 FetchAllResponse
的回呼類型。
這個回呼類型提供給下方的 FetchAll(*)
函式。
FetchAllCallback
std::function< void(FetchAllResponse const &)> FetchAllCallback
定義接收 FetchAllResponse
的回呼類型。
這個回呼類型提供給下方的 FetchAll(*)
函式。
FetchAllCallback
std::function< void(FetchAllResponse const &)> FetchAllCallback
定義 FetchAllResponse
類型回呼。
FetchAllCallback
std::function< void(FetchAllResponse const &)> FetchAllCallback
定義接收 FetchAllResponse
的回呼類型。
這個回呼類型提供給下方的 FetchAll(*)
函式。
FetchAllScoreSummariesCallback
std::function< void(FetchAllScoreSummariesResponse const &)> FetchAllScoreSummariesCallback
定義 FetchAllScoreSummariesResponse
類型回呼。
FetchCallback
std::function< void(FetchResponse const &)> FetchCallback
定義接收 FetchResponse
的回呼類型。
這個回呼類型提供給下方的 Fetch(*)
函式。
FetchCallback
std::function< void(const FetchResponse &)> FetchCallback
定義接收 FetchResponse
的回呼類型。
這個回呼類型提供給下方的 Fetch(*)
函式。
FetchCallback
std::function< void(FetchResponse const &)> FetchCallback
定義接收 FetchResponse 的回呼類型。
這個回呼類型提供給下方的 Fetch(*)
函式。
FetchCallback
std::function< void(FetchResponse const &)> FetchCallback
定義接收 FetchResponse 的回呼類型。
這個回呼類型提供給下方的 Fetch(*)
函式。
FetchForPlayerCallback
std::function< void(FetchForPlayerResponse const &)> FetchForPlayerCallback
定義接收 FetchForPlayerResponse 的回呼類型。
這個回呼類型提供給下方的 FetchForPlayer(*)
函式。
FetchListCallback
std::function< void(FetchListResponse const &)> FetchListCallback
定義接收 FetchListResponse 的回呼類型。
這個回呼類型提供給下方的 Fetch(*)
函式。
FetchScorePageCallback
std::function< void(FetchScorePageResponse const &)> FetchScorePageCallback
定義 ScorePageResponse
類型回呼。
FetchScoreSummaryCallback
std::function< void(FetchScoreSummaryResponse const &)> FetchScoreSummaryCallback
定義 FetchScoreSummaryResponse
類型回呼。
FetchSelfCallback
std::function< void(FetchSelfResponse const &)> FetchSelfCallback
定義接收 FetchSelfResponse 的回呼類型。
這個回呼類型提供給下方的 FetchSelf(*)
函式。
FetchServerAuthCodeCallback
std::function< void(FetchServerAuthCodeResponse const &)> FetchServerAuthCodeCallback
定義接收 FetchServerAuthCodeResponse 的回呼類型。
這個回呼類型提供給下方的 FetchServerAuthCode
函式。
FlushCallback
std::function< void(FlushStatus)> FlushCallback
定義接收 Flush 作業結果 (狀態) 的回呼類型。
用於 Flush()。
IsCaptureAvailableCallback
std::function< void(IsCaptureAvailableResponse const &)> IsCaptureAvailableCallback
定義接收 IsCaptureAvailableResponse 的回呼類型。
這個回呼類型提供給下方的 IsCaptureAvailable(*)
函式。
OnAuthActionFinishedCallback
std::function< void(AuthOperation, AuthStatus)> OnAuthActionFinishedCallback
已完成可提供給 SDK 的驗證動作類型。
OnAuthActionStartedCallback
std::function< void(AuthOperation)> OnAuthActionStartedCallback
可提供給 SDK 的驗證動作啟動回呼類型。
OnInitializationFinishedCallback
std::function< void(InitializationStatus)> OnInitializationFinishedCallback
應用程式叫用 API 的初始化,或初始化失敗時的回呼。
OnLogCallback
std::function< void(LogLevel, std::string const &)> OnLogCallback
可提供給 SDK 的記錄回呼類型。
OnLogCallback
std::function< void(LogLevel, std::string const &)> OnLogCallback
可提供給 SDK 的記錄回呼類型。
OnMultiplayerInvitationEventCallback
std::function< void(MultiplayerEvent, std::string, MultiplayerInvitation)> OnMultiplayerInvitationEventCallback
可提供給 SDK 的多人遊戲邀請回呼類型。
Valid() 只會針對 UPDATED 事件的 MultiplayerInvitation 傳回 true。
OnTurnBasedMatchEventCallback
std::function< void(MultiplayerEvent event, std::string, TurnBasedMatch)> OnTurnBasedMatchEventCallback
可提供給 SDK 的回合製多人遊戲事件回呼類型。
Valid() 只會針對 UPDATED 事件的 TurnBasedMatch 參數傳回 true。
OpenCallback
std::function< void(OpenResponse const &)> OpenCallback
定義接收 OpenResponse
的回呼類型。
這個回呼類型提供給下方的 Open(*)
函式。
ReadCallback
std::function< void(ReadResponse const &)> ReadCallback
定義接收 ReadResponse
的回呼類型。
這個回呼類型提供給下方的 Read(*)
函式。
ShowAllUICallback
std::function< void(UIStatus const &)> ShowAllUICallback
定義接收 UIStatus
的回呼類型。
這個回呼類型提供給下方的 ShowAllUI*
函式。
ShowAllUICallback
std::function< void(UIStatus const &)> ShowAllUICallback
定義接收 UIStatus
的回呼類型。
這個回呼類型提供給下方的 ShowAllUI*
函式。
ShowUICallback
std::function< void(UIStatus const &)> ShowUICallback
定義接收 UIStatus
的回呼類型。
這個回呼類型提供給下方的 ShowUI*
函式。
StartAdvertisingCallback
std::function< void(int64_t client_id, StartAdvertisingResult const &result)> StartAdvertisingCallback
定義在本機端點廣告嘗試完成時接收 StartAdvertisingResult 的回呼類型。的成功欄位會指出廣告是否已經順利開始。
client_id
是嘗試開始放送廣告的 NearbyConnections
執行個體 ID。result
包含該廣告的結果。