Skip to main content

AutelToastCenter

class AutelToastCenter

Description: SDK unified Toast class

/**
* toast interface object
*/
private var toast: IToast? = null
/**
* context
*/
private var mContext : Context? = null

interface IToast {
/**
* short toast message type
*/
fun shortToast(msg: String?)
/**
* long toast message type
*/
fun longToast(msg: String?)
}

method init

fun init(context: Context, toast: IToast? = null)

Description: Initialisation of toast

Input parameters: context: context object toast: IToast interface object

Output parameters: None。

Related parameters: None。