Kotlin Java
Smartlook.setUserIdentifier("sample-identifier")Smartlook.setUserIdentifier("sample-identifier");
Kotlin Java
Smartlook.instance.user.identifier = "sample-identifier"Smartlook.getInstance().getUser().setIdentifier("sample-identifier");
🚧
An identifier cannot be null or left empty
The maximum length is {user["identifier-max-length"]}.
Identifier documentation.
Kotlin Java
val userProperties = UserProperties()
.putEmail("[email protected] ")
.putName("John Doe")
Smartlook.setUserProperties(userProperties)UserProperties userProperties = new UserProperties()
.putEmail("[email protected] ")
.putName("John Doe");
Smartlook.setUserProperties(userProperties);
Kotlin Java
Smartlook.instance.user.name = "John Doe"
Smartlook.instance.user.email = "[email protected] "Smartlook.getInstance().getUser().setName("John Doe");
Smartlook.getInstance().getUser().setEmail("[email protected] ");
User name & email documentation.
Kotlin Java
val userProperties = UserProperties()
.put("name", "value")
Smartlook.setUserProperties(userProperties)UserProperties userProperties = new UserProperties()
.put("name", "value");
Smartlook.setUserProperties(userProperties);
Kotlin Java
Smartlook.instance.user.properties.putString("name", "value")Smartlook.getInstance().getUser().getProperties().putString("name", "value");
🚧
Cannot be empty or null.
The maximum length is {user["property-name-max-length"]}.
Can only contain alphanumeric characters, underscore (_), comma (,), period (.), and hyphen (-).
Must start with an alphabetic character.
🚧
The maximum length is {user["property-value-max-length"]}.
User properties documentation.