Package com.pointrlabs.core.map.models
Class ToastMessageModel
-
- All Implemented Interfaces:
-
kotlin.Comparable
public final class ToastMessageModel implements Comparable<ToastMessageModel>
Model class for Toast message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ToastMessageModel.Companion
-
Field Summary
-
Method Summary
Modifier and Type Method Description final Long
getCreationTime()
final String
getType()
final String
getText()
final Unit
setText(String text)
final Integer
getTextColor()
final Drawable
getDrawable()
final Unit
setDrawable(Drawable drawable)
final Long
getDuration()
final Unit
setDuration(Long duration)
final Integer
getPriority()
final Unit
setPriority(Integer priority)
final Boolean
isProgressBarVisible()
final Unit
setProgressBarVisible(Boolean isProgressBarVisible)
final Integer
getBackgroundColor()
final Unit
setBackgroundColor(Integer backgroundColor)
final Function0<Unit>
getAction()
final Unit
setAction(Function0<Unit> action)
Integer
compareTo(ToastMessageModel other)
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
-
-
Constructor Detail
-
ToastMessageModel
ToastMessageModel(String type, String text, Integer textColor, Drawable drawable, Long duration, Integer priority, Boolean isProgressBarVisible, Integer backgroundColor, Function0<Unit> action)
- Parameters:
type
- : Type for the toast messagetext
- : Message to be displayedtextColor
- : Color of the text; if null, default color will be useddrawable
- : Drawable to be displayed along with the messageduration
- : Duration of the toast message in millisecondspriority
- : Priority of the toast message; larger value means higher priority
-
-
Method Detail
-
getCreationTime
final Long getCreationTime()
-
getTextColor
final Integer getTextColor()
-
getDrawable
final Drawable getDrawable()
-
setDrawable
final Unit setDrawable(Drawable drawable)
- Parameters:
drawable
- : Drawable to be displayed along with the message
-
getDuration
final Long getDuration()
-
setDuration
final Unit setDuration(Long duration)
- Parameters:
duration
- : Duration of the toast message in milliseconds
-
getPriority
final Integer getPriority()
-
setPriority
final Unit setPriority(Integer priority)
- Parameters:
priority
- : Priority of the toast message; larger value means higher priority
-
isProgressBarVisible
final Boolean isProgressBarVisible()
-
setProgressBarVisible
final Unit setProgressBarVisible(Boolean isProgressBarVisible)
-
getBackgroundColor
final Integer getBackgroundColor()
-
setBackgroundColor
final Unit setBackgroundColor(Integer backgroundColor)
-
compareTo
Integer compareTo(ToastMessageModel other)
-
-
-
-