create

fun create(tag: String, identity: String, priority: Int? = LOWEST_PRIORITY, expiry: Date? = NEVER_EXPIRE): Alias

Creates an Alias object.

Parameters

tag

The identifier tag type (e.g. "email_md5")

identity

The value used to identify the user

priority

The priority of the alias, where 0 is the highest and Alias.LOWEST_PRIORITY is the lowest

expiry

The expiry time and date of the alias or Alias.NEVER_EXPIRE if it never expires

Throws

when the tag is reserved (may not be appnexus,amp,gigya,sailthru,idfa or aaid)