コールバック
非同期呼び出しのターゲットとなる関数。
概要
アクセサラ メソッドへの引数として渡される 1 回限りのコールバック用の関数と、GameServices のビルド時に構成された再利用可能なコールバックが含まれています。
すべてのコールバックは、専用のコールバック スレッドで呼び出されます。このスレッドは、「メインスレッド」または「UI スレッド」のようなプラットフォームのコンセプトとは異なることがあります。処理の滞ったコールバック スレッドは、ユーザーが感知するような問題(たとえば、ログアウト リクエストの完了の遅延)を引き起こす可能性があるため、ユーザーのコールバックはすみやかに実行する必要があります。
コールバック内で Leaderboards().FetchAllBlocking() などのブロッキング GPG API を呼び出すことは避けてください。このような呼び出しはデッドロックを引き起こします。
Typedef |
|
---|---|
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 を受信するコールバック タイプを定義します。このコールバックの success フィールドには、広告掲載が正常に開始されたかどうかが示されます。 |
Typedef
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 を受信するコールバック タイプを定義します。このコールバックの success フィールドには、広告掲載が正常に開始されたかどうかが示されます。
client_id
は、広告の開始を試みた NearbyConnections
インスタンスの ID です。result
には、その広告の結果が含まれます。