class AppSetId


A unique, per-device, per developer-account user-resettable ID for non-monetizing advertising use cases.

Represents the appSetID and scope of this appSetId from the AppSetIdManager#getAppSetId() API. The scope of the ID can be per app or per developer account associated with the user. AppSetId is used for analytics, spam detection, frequency capping and fraud prevention use cases, on a given device, that one may need to correlate usage or actions across a set of apps owned by an organization.

Summary

Constants

const Int

The appSetId is scoped to an app.

const Int

The appSetId is scoped to a developer account on an app store.

Public constructors

AppSetId(id: String, scope: Int)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

The appSetID.

Int

The scope of the ID.

Constants

SCOPE_APP

const val SCOPE_APP = 1: Int

The appSetId is scoped to an app. All apps on a device will have a different appSetId.

SCOPE_DEVELOPER

const val SCOPE_DEVELOPER = 2: Int

The appSetId is scoped to a developer account on an app store. All apps from the same developer on a device will have the same developer scoped appSetId.

Public constructors

AppSetId

Added in 1.0.0
AppSetId(id: String, scope: Int)
Parameters
id: String

The appSetID.

scope: Int

The scope of the ID. Can be AppSetId.SCOPE_APP or AppSetId.SCOPE_DEVELOPER.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

id

Added in 1.0.0
val idString

The appSetID.

scope

Added in 1.0.0
val scopeInt

The scope of the ID. Can be AppSetId.SCOPE_APP or AppSetId.SCOPE_DEVELOPER.