GoogleSignInViewModel

open class GoogleSignInViewModel(val googleSignInClient: GoogleSignInClient, googleSignInEventListener: GoogleSignInEventListener = GoogleSignInEventListenerNoOpImpl) : ViewModel

A view model for a Google Sign-In screen.

Constructors

Link copied to clipboard
constructor(googleSignInClient: GoogleSignInClient, googleSignInEventListener: GoogleSignInEventListener = GoogleSignInEventListenerNoOpImpl)

Properties

Link copied to clipboard
val googleSignInClient: GoogleSignInClient
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun onAccountSelected(account: GoogleSignInAccount)

Indicate that account was selected.

Link copied to clipboard

Indicate that the process to select an account failed.

Link copied to clipboard

Indicate that the authentication was cancelled.

Link copied to clipboard

Indicate that the screen has observed the idle state and that the view model can start its work.