Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.authentication.methods / GuestMethod

GuestMethod

class GuestMethod : AuthenticationMethod

Manages authentication of guest users for a Webcom application.

The authentication of a guest user is valid for the session duration defined in the Webcom developer console. It is possible to make a guest user "regular" by attaching to her·his guest authentication a stable identity (or authentication method) before the expiration of her·his session.

Instances of this GuestMethod must be created using the AuthenticationService.getGuestMethod method.

Functions

authenticate

fun authenticate(callback: WebcomResultCallback<AuthenticationDetails>? = null): Unit

Authenticates a user as a guest user for the Webcom application. This operation is asynchronous and calls the given callback with the authentication result once performed.