SDK统一Toast类
class AutelToastCenter
描述: SDK统一Toast类
/**
* toast接口对象
*/
private var toast: IToast? = null
/**
* 语境
*/
private var mContext : Context? = null
interface IToast {
/**
* 简短消息类型
*/
fun shortToast(msg: String?)
/**
* 长吐司消息类型
*/
fun longToast(msg: String?)
}
method init
fun init(context: Context, toast: IToast? = null)
描述: toast的初始化
输入参数: context: 上下文对象 toast: IToast 接口对象
输出参数: 无。
相关参数: 没有任何。