Instance Method

clearAdvertisingIdentifier()

Clears the app's current advertising identifier, forcing the creation of a new advertising identifier the next time you need one.

Declaration

func clearAdvertisingIdentifier()

Discussion

The next time you access the advertisingIdentifier property, it generates and returns a new value.

See Also

Getting the Advertising Identifier

var advertisingIdentifier: UUID

An alphanumeric string unique to each device, used only for serving advertisements.

var isAdvertisingTrackingEnabled: Bool

A Boolean value that indicates whether the user has limited ad tracking.