public class

AdvertisingIdTracker

extends AirshipComponent
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).

Class Overview

Helper class that auto tracks the android advertising Id. The ID will automatically be set on Analytics by editing the associated identifiers using editAssociatedIdentifiers().

Summary

[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

Public Methods

public void clear ()

Disables the tracker and clears the current advertising ID.

public boolean isEnabled ()

Returns true if the tracker is enabled, false if its disabled.

Returns
  • true if the tracker is enabled, false if its disabled.

public void setEnabled (boolean isEnabled)

Enables or disables the tracker.

The value is persisted in shared preferences.

Parameters
isEnabled true to enable the tracker, otherwise false.

public static AdvertisingIdTracker shared ()

Gets the the tracker.

Returns
  • The tracker.

Protected Methods

protected void init ()

Initialize the manager. Called in UAirship during takeoff.