Editor

abstract class Editor(source)

Interface use to modify identifiers in the AssociatedIdentifiers object. All changes you make in the editor are batched, and not saved until you call apply().

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun addIdentifier(@Size(min = 1, max = 255) key: String, @Size(min = 1, max = 255) value: String): AssociatedIdentifiers.Editor

Adds an identifier.

Link copied to clipboard
fun apply()

Applies the identifiers changes.

Link copied to clipboard

Clears all the identifiers.

Link copied to clipboard
abstract fun onApply(clear: Boolean, idsToAdd: Map<String, String>, idsToRemove: List<String>)

Called when apply is called.

Link copied to clipboard

Removes both the Android advertising ID and the limit ad tracking enabled value.

Link copied to clipboard
fun removeIdentifier(@Size(min = 1, max = 255) key: String): AssociatedIdentifiers.Editor

Removes the identifier.

Link copied to clipboard
fun setAdvertisingId(@Size(min = 1, max = 255) adId: String, limitAdTrackingEnabled: Boolean): AssociatedIdentifiers.Editor

Sets the Android advertising ID and the limit ad tracking enabled value.