getDemographicId(): Difference between revisions

From Engineering Client Portal

(Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital <br> Category:Android SDK API Reference This API...")
 
(v10.0.0.0 Changes)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}}
{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}}
[[Category:Digital]]
 
<br>
<br>
[[Category:Android SDK API Reference]]
 
This API gets the current 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.
'''Warning:''' calling getDemographicId() in main thread may cause deadlock, be sure to call in a background thread.
 
[[Category:Digital]]
[[Category:Android SDK API Reference]]
== Syntax ==
== Syntax ==
<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
Line 25: 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

Engineering Portal / Digital / Android SDK API Reference / getDemographicId()


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.