Written by Remi Delhaye
Last update: Thursday, Jan 02, 2025
Initialization:
Polaria.initialize(this, "ppk-...", "psk-...")
Identification
// You can declare and initialize a new identity
PolariaIdentity identity = PolariaIdentity()
// 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
Polaria.setIdentity(identity)
// OR you can chain 'set' calls and set the identity
Polaria.setIdentity(
PolariaIdentity().setId("qwerty123").setName("A Android User").setEmail("[email protected]")
)
Hide and Show the livechat:
Polaria.show()
Polaria.hide()