Last update: ศุกร์, ธ.ค. 11, 2020
Initialization:
Xeno.initialize(this, "xpk-...", "xsk-...")
Identification
// You can declare and initialize a new identity
XenoIdentity identity = XenoIdentity()
// 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
Xeno.setIdentity(identity)
// OR you can chain 'set' calls and set the identity
Xeno.setIdentity(
XenoIdentity().setId("qwerty123").setName("A Android User").setEmail("[email protected]")
)
Hide and Show the livechat:
Xeno.show()
Xeno.hide()