KustomerCore.sendPresenceActivity()
Send information about the customer's presence status.
First, initialize chat
You must initialize with
KustomerCore.init()before you can execute any additional Core SDK methods
Examples
// Send presence activity
KustomerCore.sendPresenceActivity({
presence: 'online'
});
Syntax
KustomerCore.sendPresenceActivity(options)
| Parameter | Type | Description |
|---|---|---|
| options | Object | Required An object containing the presence status. A breakdown of the options object is listed below. |
options
options| Property | Type | Description |
|---|---|---|
| presence | String | Required Either 'online' or 'offline'. |
Updated over 4 years ago