AdvertisingIdInfo

abstract class AdvertisingIdInfo
kotlin.Any
   ↳ androidx.ads.identifier.AdvertisingIdInfo

Advertising ID Information. Includes both the Advertising ID and the limit ad tracking setting.

Summary

Public methods

abstract String

Retrieves the Advertising ID.

abstract String

Retrieves the Advertising ID provider package name.

abstract Boolean

Retrieves whether the user has set Limit Advertising Tracking.

Public methods

getId

@NonNull abstract fun getId(): String

Retrieves the Advertising ID.

This will be in UUID format, either Advertising ID Provider provided an Advertising ID in UUID format, or this developer library will normalize the Advertising ID to UUID format.

getProviderPackageName

@NonNull abstract fun getProviderPackageName(): String

Retrieves the Advertising ID provider package name.

isLimitAdTrackingEnabled

abstract fun isLimitAdTrackingEnabled(): Boolean

Retrieves whether the user has set Limit Advertising Tracking.