getDemographicId(): Difference between revisions
From Engineering Client Portal
AnkitAgrawal (talk | contribs) (v10.0.0.0 Changes) |
AnkitAgrawal (talk | contribs) (v10.0.0.0 Changes) |
||
Line 3: | Line 3: | ||
<br> | <br> | ||
This API gets the current UAID for SDK v10.0.0.0+. Previous versions, it gets Demographic ID of the device. | This API gets the current SDK generated UAID for SDK v10.0.0.0+. Previous versions, it gets Demographic ID of the device. | ||
'''Warning:''' calling getDemographicId() in main thread may cause deadlock, be sure to call in a background thread. | |||
[[Category:Digital]] | [[Category:Digital]] | ||
[[Category:Android SDK API Reference]] | [[Category:Android SDK API Reference]] | ||
== Syntax == | == Syntax == | ||
<syntaxhighlight lang="java"> | <syntaxhighlight lang="java"> | ||
Line 26: | Line 26: | ||
! Output Parameters (Return value) !! Description | ! Output Parameters (Return value) !! Description | ||
|- | |- | ||
| String || Returns Demographic ID of the device. | | String || Returns SDK generated UAID or Demographic ID of the device for legacy versions. | ||
|} | |} |
Latest revision as of 11:17, 4 April 2025
This API gets the current SDK generated UAID for SDK v10.0.0.0+. Previous versions, it gets Demographic ID of the device.
Warning: calling getDemographicId() in main thread may cause deadlock, be sure to call in a background thread.
Syntax
public String getDemographicId()
Input Parameters
Parameter | Description |
---|---|
None |
Output Parameters
Output Parameters (Return value) | Description |
---|---|
String | Returns SDK generated UAID or Demographic ID of the device for legacy versions. |