initialize
fun initialize(configurationId: String, email: String?, phone: String?, hasConsentToNoLegislation: Boolean, callback: LREnvelopeCallback? = null)
Initializes LiveRamp and retrieves envelope based on supplied email or phone.
If phone and email are both null, the extension will skip initializing LiveRamp.
Parameters
configurationId
the configuration id provided by LiveRamp
email
the preferred method for identifying a user, if null will attempt to use phone number
phone
can be used if email is not known, only supports US based phone numbers
hasConsentToNoLegislation
refer to Consent requirements
callback
a callback for the success or error retrieving the LiveRamp envelope