PFAuthenticationServerLoginWithAndroidDeviceIDRequest

PFAuthenticationServerLoginWithAndroidDeviceIDRequest データ モデル。 Android デバイスでは、このブログ記事 (http://android-developers.blogspot.com/2011/03/identifying-app-installations.html) で説明されているように、Settings.Secure.ANDROID_ID を AndroidDeviceId として使用することをお勧めします。 この識別子の詳細については、Android のドキュメント (http://developer.android.com/reference/android/provider/Settings.Secure.html) を参照してください。 ユーザーが Android デバイス を使用して初めてサインインし、CreateAccount が true に設定されている場合、新しい PlayFab アカウントが作成され、ベンダー固有の iOS デバイス ID にリンクされます。 この場合、メールアドレスとユーザー名は PlayFab アカウントに関連付けられません。 それ以外の場合で、PlayFab アカウントが Android デバイスにリンクされていない場合は、これを示すエラーが返され、タイトルがユーザーに対して PlayFab アカウントの作成をガイドできるようになります。 この種類の複数のデバイスを 1 つのユーザー アカウントにリンクできますが、ユーザーのアカウント情報に反映されるのは、最後にログインに使用された、または最後にリンクされたデバイスのみです。 今後のリリースでは、リンクされているすべてのデバイスが表示されるように更新する予定です。

構文

typedef struct PFAuthenticationServerLoginWithAndroidDeviceIDRequest {  
    const char* androidDevice;  
    const char* androidDeviceId;  
    bool createAccount;  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFGetPlayerCombinedInfoRequestParams const* infoRequestParameters;  
    const char* OS;  
} PFAuthenticationServerLoginWithAndroidDeviceIDRequest;  

メンバー

androidDevice const char*
が null で終わる

(省略可能) ユーザーのデバイスの特定のモデル。

androidDeviceId const char*
が null で終わる

ユーザーのデバイスの Android デバイス識別子。

createAccount bool

現在この ID にリンクされている PlayFab アカウントがない場合は、PlayFab アカウントを自動的に作成します。

customTags PFStringDictionaryEntry const*
nullptr でもかまいません

(省略可能) 要求に関連付けられているオプションのカスタム タグ (ビルド番号、外部トレース識別子など)。

customTagsCount uint32_t

customTags の数

infoRequestParameters PFGetPlayerCombinedInfoRequestParams const*
nullptr でもかまいません

(省略可能) ユーザーに返される情報の一部を示すフラグ。

OS const char*
が null で終わる

(省略可能) ユーザーのデバイスの特定のオペレーティング システムバージョン。

要件

ヘッダー: PFAuthenticationTypes.h

関連項目

PFAuthenticationTypes メンバー