setTitle

fun setTitle(title: String)

Sets the title that will be displayed on the toast.

The title can be marked up with the Pango text markup language.

Setting a title will unset property@Toast:custom-title.

If property@Toast:custom-title is set, it will be used instead.

Parameters

title

a title