Stickers
The LiSA Player sends messages in response to various user interactions with stickers.
The player distinguishes different types of stickers interactions.
Click — The sticker was clicked by a user
Expire — The sticker has expired
Impression — The sticker becomes visible in a user's viewport
Unlock — The sticker's activation timer is complete
Update — Poll details have been updated
Voucher Claim — The voucher code of a voucher sticker has been claimed by a user
This message is sent by the LiSA Player to the host app / environment.
Properties
Along with all standard Message properties, a Sticker Interaction message includes the following additional properties:
mediaItemId
Required.
The mediaItemId
property uniquely identifies the Media Item from which this message originates.
mediaItemType
Required.
messageType
Required.
The messageType
property specifies the distinct type of message.
progress
Required.
stickerActionTarget
Optional.
stickerActivationTimerDurationInSec
Required.
The stickerActivationTimerDurationInSec
property defines the length of the activation timer in seconds. If no activation timer is set for the sticker, the value is 0
.
stickerActivationTimerIsActive
Required.
The stickerActivationTimerIsActive
property indicates, whether the sticker's activation timer is currently running.
stickerActivationTimerIsCompleted
Required.
The stickerActivationTimerIsCompleted
property indicates, whether the sticker's activation timer is complete.
stickerActivationTimerStartedAt
Required.
The stickerActivationTimerStartedAt
property represents the timestamp when the activation timer of the sticker was started — represented in ISO 8601 format.
If no activation timer is set for the sticker, the value stores the timestamp of when the sticker was published.
stickerDetails
Optional.
stickerExpiryTimerDurationInSec
Required.
The stickerExpiryTimerDurationInSec
property defines the length of the expiry timer in seconds. If no expiry timer is set for the sticker, the value is 0
.
stickerExpiryTimerIsActive
Required.
The stickerExpiryTimerIsActive
property indicates, whether the sticker's expiry timer is currently running.
stickerExpiryTimerStartedAt
Required.
The stickerExpiryTimerStartedAt
property represents the timestamp when the expiry timer of the sticker was started — represented in ISO 8601 format.
If no activation timer is set for the sticker, the value stores the timestamp of when the sticker was published.
stickerId
Required.
The stickerId
property represents the unique sticker identifier.
stickerIsExpired
Required.
The stickerIsExpired
property indicates, whether the sticker has expired.
stickerIsUnlocked
Required.
The stickerIsUnlocked
property indicates, whether the sticker is unlocked. Either when the activation timer is not set or has completed AND the sticker has not expired.
stickerType
Required.
The stickerType
property represents the type of sticker being used.
Allowed Values:
alert
– Displays an informational or warning alert.poll
– Represents a poll for collecting user votes.product
– Showcases a product-related sticker.voucher
– Represents a discount or promotional voucher sticker.
Type Definition
StickerActionTarget
StickerActionTarget
The Sticker Action supports three different use cases:
Identifier (String) — Represents an action or event that the host app / environment can interpret and execute.
Localized String (Object) — If the action target is a localized URL to be opened in a new tab, each
key
of the object represents a language code and the correspondingvalue
contains the URL.Localized Structured Data (String) — For more complex action definitions the action target contains an object, where each
key
represents a language code and the correspondingvalue
contains an object structure.
StickerDetails
StickerDetails
The StickersDetails
type defines the corresponding details for each sticker based on its type.
The Alert sticker does not contain any specific details, so the stickerDetails
value is always an empty object.
Last updated