//[
login
[androidJvm]
abstract fun login(userProfile: Streem.UserProfile, resultCallback: (Streem.LoginCompletionResult) -> Unit? = null)
Logs in the current user to the Streem SDK. New users are automatically provisioned on first use. Existing users will have their profile information updated to match userProfile.
Parameters
androidJvm
userProfile | the user profile to log in |
resultCallback | a function that is called with the LoginCompletionResult |
[androidJvm]
abstract fun login(invitationUri: Uri, isExpert: Boolean, resultCallback: (Streem.LoginInvitationResult) -> Unit)
Logs in the user invited via the invitation Uri and passes back invitation details (the inviter’s name, company, avatar image URL, etc.) through resultCallback. With the StreemInvitation received in resultCallback, launch the Streem experience using StartStreemFromInvitation.
Parameters
androidJvm
invitationUri | the invitation Uri |
isExpert | whether the invited user is an expert. |
resultCallback | a function that is called with a LoginInvitationResult |
[androidJvm]
abstract fun login(invitationCode: String, isExpert: Boolean, resultCallback: (Streem.LoginInvitationResult) -> Unit)
Logs in the user invited via the invitation code and passes back invitation details (the inviter’s name, company, avatar image URL, etc.) through resultCallback. With the StreemInvitation received in resultCallback, launch the Streem experience using StartStreemFromInvitation.
Parameters
androidJvm
invitationCode | the invitation code of the invited user’s invitation. |
isExpert | whether the invited user is an expert. |
resultCallback | a function that is called with a LoginInvitationResult |