buildStatus

fun buildStatus(message: String, duration: Long = 0, animated: Boolean = true, spinner: Boolean = false, @DrawableRes() icon: Int = 0): Status

Instantiate a new status with a given field values.

Parameters

message

The message field value.

duration

The duration field value in milliseconds. The default value is 0.

animated

The animate field value. The default value is true.

spinner

The spinner field value. The default value is false.

icon

The icon field value. The default value is 0.