Written by Grace Williamson
Last update: Friday, Dec 11, 2020
Initialization:
Slaask.initialize(this, "spk-...", "ssk-...")
Identification
// You can declare and initialize a new identity
SlaaskIdentity identity = SlaaskIdentity()
// then set attributes
identity.setId("qwerty123")
identity.setName("A Android User")
identity.setEmail("[email protected]")
identity.setAvatar("https://via.placeholder.com/200x200")
identity.setRegisteredAt("1565356073") // Should be a timestamp string
identity.setCustomAttribute("foo", "bar")) // Add any custom attribute you want
// and then set the identity
Slaask.setIdentity(identity)
// OR you can chain 'set' calls and set the identity
Slaask.setIdentity(
SlaaskIdentity().setId("qwerty123").setName("A Android User").setEmail("[email protected]")
)
Hide and Show the livechat:
Slaask.show()
Slaask.hide()