コールバック

非同期呼び出しの対象となる関数。

概要

アクセサ メソッドに引数として渡されるワンショット コールバックのファンクタや、GameServices のビルド時に構成されるマルチユース コールバックが含まれます。

すべてのコールバックは、専用のコールバック スレッドで呼び出されます。このスレッドは、「メインスレッド」や「UI スレッド」といったプラットフォームのコンセプトとは異なる場合があります。コールバック スレッドの停滞は、ユーザーが認識できる問題(ログアウト リクエストの完了の遅延など)を引き起こす可能性があるため、ユーザーのコールバックは迅速に実行する必要があります。

Leaderboards().FetchAllBlocking() などのブロッキング GPG API をコールバック内で呼び出さないでください。そうした呼び出しによってデッドロックが発生します。

Typedef

CaptureCapabilitiesCallback typedef
std::function< void(GetCaptureCapabilitiesResponse const &)>
GetCaptureCapabilitiesResponse を受け取るコールバック タイプを定義します。
CaptureStateCallback typedef
std::function< void(GetCaptureStateResponse const &)>
GetCaptureStateResponse を受け取るコールバック タイプを定義します。
CommitCallback typedef
std::function< void(CommitResponse const &)>
CommitResponse を受け取るコールバック タイプを定義します。
ConnectionRequestCallback typedef
std::function< void(int64_t client_id, ConnectionRequest const &request)>
リモート エンドポイントがアプリ独自のエンドポイントに接続しようとしたときに ConnectionRequest を受け取るコールバック タイプを定義します。
FetchAllCallback typedef
std::function< void(FetchAllResponse const &)>
FetchAllResponse を受け取るコールバック タイプを定義します。
FetchAllCallback typedef
std::function< void(FetchAllResponse const &)>
FetchAllResponse を受け取るコールバック タイプを定義します。
FetchAllCallback typedef
std::function< void(FetchAllResponse const &)>
FetchAllResponse 型のコールバックを定義します。
FetchAllCallback typedef
std::function< void(FetchAllResponse const &)>
FetchAllResponse を受け取るコールバック タイプを定義します。
FetchAllScoreSummariesCallback typedef
std::function< void(FetchAllScoreSummariesResponse const &)>
FetchAllScoreSummariesResponse 型のコールバックを定義します。
FetchCallback typedef
std::function< void(FetchResponse const &)>
FetchResponse を受け取るコールバック タイプを定義します。
FetchCallback typedef
std::function< void(const FetchResponse &)>
FetchResponse を受け取るコールバック タイプを定義します。
FetchCallback typedef
std::function< void(FetchResponse const &)>
FetchResponse を受け取るコールバック タイプを定義します。
FetchCallback typedef
std::function< void(FetchResponse const &)>
FetchResponse を受け取るコールバック タイプを定義します。
FetchForPlayerCallback typedef
std::function< void(FetchForPlayerResponse const &)>
FetchForPlayerResponse を受け取るコールバック タイプを定義します。
FetchListCallback typedef
std::function< void(FetchListResponse const &)>
FetchListResponse を受け取るコールバック タイプを定義します。
FetchScorePageCallback typedef
std::function< void(FetchScorePageResponse const &)>
ScorePageResponse 型のコールバックを定義します。
FetchScoreSummaryCallback typedef
std::function< void(FetchScoreSummaryResponse const &)>
FetchScoreSummaryResponse 型のコールバックを定義します。
FetchSelfCallback typedef
std::function< void(FetchSelfResponse const &)>
FetchSelfResponse を受け取るコールバック タイプを定義します。
FetchServerAuthCodeCallback typedef
std::function< void(FetchServerAuthCodeResponse const &)>
FetchServerAuthCodeResponse を受け取るコールバック タイプを定義します。
FlushCallback typedef
std::function< void(FlushStatus)>
フラッシュ操作の結果(ステータス)を受け取るコールバック タイプを定義します。
IsCaptureAvailableCallback typedef
std::function< void(IsCaptureAvailableResponse const &)>
IsCaptureAvailableResponse を受け取るコールバック タイプを定義します。
OnAuthActionFinishedCallback typedef
std::function< void(AuthOperation, AuthStatus)>
SDK に提供できる認証アクション完了コールバックのタイプ。
OnAuthActionStartedCallback typedef
std::function< void(AuthOperation)>
SDK に提供できる認証アクション開始コールバックのタイプ。
OnInitializationFinishedCallback typedef
std::function< void(InitializationStatus)>
API の初期化時、または初期化が失敗した場合にアプリが呼び出すコールバック。
OnLogCallback typedef
std::function< void(LogLevel, std::string const &)>
SDK に提供できるロギング コールバックのタイプ。
OnLogCallback typedef
std::function< void(LogLevel, std::string const &)>
SDK に提供できるロギング コールバックのタイプ。
OnMultiplayerInvitationEventCallback typedef
std::function< void(MultiplayerEvent, std::string, MultiplayerInvitation)>
SDK に提供できるマルチプレーヤー招待コールバックのタイプ。
OnTurnBasedMatchEventCallback typedef
std::function< void(MultiplayerEvent event, std::string, TurnBasedMatch)>
SDK に提供できるターンベースのマルチプレーヤー イベント コールバックのタイプ。
OpenCallback typedef
std::function< void(OpenResponse const &)>
OpenResponse を受け取るコールバック タイプを定義します。
ReadCallback typedef
std::function< void(ReadResponse const &)>
ReadResponse を受け取るコールバック タイプを定義します。
ShowAllUICallback typedef
std::function< void(UIStatus const &)>
UIStatus を受け取るコールバック タイプを定義します。
ShowAllUICallback typedef
std::function< void(UIStatus const &)>
UIStatus を受け取るコールバック タイプを定義します。
ShowUICallback typedef
std::function< void(UIStatus const &)>
UIStatus を受け取るコールバック タイプを定義します。
StartAdvertisingCallback typedef
std::function< void(int64_t client_id, StartAdvertisingResult const &result)>
ローカル エンドポイントのアドバタイジング試行が完了したときに StartAdvertisingResult を受け取るコールバック タイプを定義します。その成功フィールドは、アドバタイジングが正常に開始されたかどうかを示します。

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() で使用します。

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 には、その広告の結果が含まれます。