java.lang.Object | ||
↳ | com.urbanairship.AirshipComponent | |
↳ | com.urbanairship.aaid.AdvertisingIdTracker |
This class is deprecated.
The ads-identifier module will be removed in a future SDK release. Replace with
direct usage of editAssociatedIdentifiers()
and
setAdvertisingId(String, boolean)
.
Helper class that auto tracks the android advertising Id. The ID will
automatically be set on Analytics
by editing the associated identifiers
using editAssociatedIdentifiers()
.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.AirshipComponent
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clear()
Disables the tracker and clears the current advertising ID.
| ||||||||||
boolean |
isEnabled()
Returns
true if the tracker is enabled, false if its disabled. | ||||||||||
void |
setEnabled(boolean isEnabled)
Enables or disables the tracker.
| ||||||||||
static AdvertisingIdTracker |
shared()
Gets the the tracker.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
init()
Initialize the manager.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Disables the tracker and clears the current advertising ID.
Returns true
if the tracker is enabled, false
if its disabled.
true
if the tracker is enabled, false
if its disabled.
Enables or disables the tracker.
The value is persisted in shared preferences.
isEnabled | true to enable the tracker, otherwise false .
|
---|