AppSetIdInfo
Stay organized with collections
Save and categorize content based on your preferences.
Contains information about app set ID.
Constant Summary
int |
SCOPE_APP
|
The app set ID is scoped to the app. |
int |
SCOPE_DEVELOPER
|
The app set ID is scoped to a developer account
on an app store. |
Inherited Method Summary
From class java.lang.Object
Constants
public static final int
SCOPE_APP
The app set ID is scoped to the app.
Constant Value:
1
public static final int
SCOPE_DEVELOPER
The app set ID is scoped to a developer account on an app store. All apps from the
same developer on a device will have the same developer scoped app set ID.
Constant Value:
2
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eAppSetIdInfo\u003c/code\u003e provides information about an app set ID, including its value and scope.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of an app set ID can be either app-specific (\u003ccode\u003eSCOPE_APP\u003c/code\u003e) or developer-specific (\u003ccode\u003eSCOPE_DEVELOPER\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the app set ID using \u003ccode\u003egetId()\u003c/code\u003e and its scope using \u003ccode\u003egetScope()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AppSetIdInfo\n\npublic class **AppSetIdInfo** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nContains information about app set ID. \n\n### Nested Class Summary\n\n|------------|---|---|----------------------------------------------------------------------------------------------------------------------------|\n| @interface | [AppSetIdInfo.Scope](/android/reference/com/google/android/gms/appset/AppSetIdInfo.Scope) || Allowed constants for [AppSetIdInfo.getScope()](/android/reference/com/google/android/gms/appset/AppSetIdInfo#getScope()). |\n\n### Constant Summary\n\n|-----|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------|\n| int | [SCOPE_APP](/android/reference/com/google/android/gms/appset/AppSetIdInfo#SCOPE_APP) | The app set ID is scoped to the app. |\n| int | [SCOPE_DEVELOPER](/android/reference/com/google/android/gms/appset/AppSetIdInfo#SCOPE_DEVELOPER) | The app set ID is scoped to a developer account on an app store. |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [String](//developer.android.com/reference/java/lang/String.html) | [getId](/android/reference/com/google/android/gms/appset/AppSetIdInfo#getId())() Gets the app set ID. |\n| int | [getScope](/android/reference/com/google/android/gms/appset/AppSetIdInfo#getScope())() Returns the [AppSetIdInfo.Scope](/android/reference/com/google/android/gms/appset/AppSetIdInfo.Scope) of the app set ID. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**SCOPE_APP**\n\nThe app set ID is scoped to the app. \nConstant Value: 1 \n\n#### public static final int\n**SCOPE_DEVELOPER**\n\nThe app set ID is scoped to a developer account on an app store. All apps from the\nsame developer on a device will have the same developer scoped app set ID. \nConstant Value: 2\n\nPublic Methods\n--------------\n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getId** ()\n\nGets the app set ID. \n\n##### Returns\n\n- the app set ID. \n\n#### public int **getScope** ()\n\nReturns the [AppSetIdInfo.Scope](/android/reference/com/google/android/gms/appset/AppSetIdInfo.Scope)\nof the app set ID. Possible values include [SCOPE_APP](/android/reference/com/google/android/gms/appset/AppSetIdInfo#SCOPE_APP)\nand [SCOPE_DEVELOPER](/android/reference/com/google/android/gms/appset/AppSetIdInfo#SCOPE_DEVELOPER). \n\n##### Returns\n\n- the app set ID's [AppSetIdInfo.Scope](/android/reference/com/google/android/gms/appset/AppSetIdInfo.Scope)."]]