Login

open class Login

Utilities for logging in and inspecting current login state

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Represents a mesage that can be displayed when trying to log in, such as already logged in

Functions

Link copied to clipboard
Attempts to get the login message at the login screen
Link copied to clipboard
Link copied to clipboard
open fun isLoggedIn(): Boolean
Checks if we are currently logged in
Link copied to clipboard
Checks if login music is disabled.
Link copied to clipboard
open fun login(): Boolean
Attempts to log in using the account selected by the user when starting the script
open fun login(username: String, password: String): Boolean
open fun login(username: String, password: String, authenticatorSecret: String): Boolean
Attempts to log in using ths specified credentials
Link copied to clipboard
open fun logout(): Boolean
Attempts to log out
Link copied to clipboard
open fun setLoginMusic(disabled: Boolean)
Sets whether login music should be disabled or not