ToastUtils
object ToastUtils
Description: Toast display class
object ToastUtils {
/**
* handler for show toast
*/
private val handler = Handler(Looper.getMainLooper())
}
method showToast
fun showToast(context: Context?, msg: String)
Description: Showing toast with handler
Input parameters: context: context of handler msg: message to be show
Output parameters: None。
Related parameters: None。
method showToast
fun showToast(msg: String)
Description: Normal show toast
Input parameters: msg: message to be show
Output parameters: None。
Related parameters: None。