setSourceAttribute

abstract fun setSourceAttribute(key: String, value: String, elapsedMillis: Long? = null)

Sends a custom string property for the given SDK installation (source).

Parameters

key

The key of the property.

value

The value of the property.

elapsedMillis

This parameter can be used for provide a timestamp for the attribute. If you do not specify it, the ExperienceSDK will use the current time as the timestamp. To shift the timestamp, set this parameter to the amount of elapsed milliseconds since the last device boot at the actual time when the interval started.


abstract fun setSourceAttribute(key: String, value: Number, elapsedMillis: Long? = null)

Sends a custom number property for the given SDK installation (source).

Parameters

key

The key of the property.

value

The value of the property.

elapsedMillis

This parameter can be used for provide a timestamp for the attribute. If you do not specify it, the ExperienceSDK will use the current time as the timestamp. To shift the timestamp, set this parameter to the amount of elapsed milliseconds since the last device boot at the actual time when the interval started.


abstract fun setSourceAttribute(key: String, value: Boolean, elapsedMillis: Long? = null)

Sends a custom boolean property for the given SDK installation (source).

Parameters

key

The key of the property.

value

The value of the property.

elapsedMillis

This parameter can be used for provide a timestamp for the attribute. If you do not specify it, the ExperienceSDK will use the current time as the timestamp. To shift the timestamp, set this parameter to the amount of elapsed milliseconds since the last device boot at the actual time when the interval started.