Changes the type of the gradient defined in this drawable.
GravityAsToastGravityWrapper [read only]
Gets the gravity for the toast, text and title.
IconPositionAsIconPositionWrapper [read only]
Gets the positions for icons.
Initialize (EventNameAsString)
Initialize the Object
LoadFontFromAssetsAsString [write only]
Loads a new Type face from the specified font data for text and title.
LoadFontFromFileAsString [write only]
Loads a new Type face from the specified font data for text and title.
OrientationAsOrientationsWrapper [read only]
Changes the orientation of the gradient defined in this drawable.
Show
Show toast which the notification should appear on the screen.
TextSizeAsTextSizeWrapper [read only]
Gets the size for the text,title and button text.
TypeFaceAsToastTypefaceWrapper [read only]
Gets the type face and style in which the text should be displayed. Note that not all Type face families actually have bold and italic variants, so you may need to use TextStyle(style) to get the appearance that you actually want.
VersionAsString [read only]
Return Author and Version of this library.
withAnimation (animationAsInt) AsToastMessageShow
Sets the animation which the notification should appear on the screen. animation:
Sets the type face and style in which the text should be displayed.
Note that not all Type face families actually have bold and italic variants, so you may need to use TextStyle(style) to get the appearance that you actually want. family:
withTitle (textAsCharSequence) AsToastMessageShow
Create toast with title. text:
withTitleColor (colorAsObject) AsToastMessageShow
Set color to the title.
the color can be added as String or Int {@value 0xFFFFFF00 or Colors.Yellow or "#FFFFFF00"}. color:
Sets the type face and style in which the text should be displayed.
Note that not all Type face families actually have bold and italic variants, so you may need to use TextStyle(style) to get the appearance that you actually want. family:
withXOffset (xOffsetAsInt) AsToastMessageShow
Sets the axis X position for this toast. xOffset:
withYOffset (yOffsetAsInt) AsToastMessageShow
Sets the axis Y position for this toast. yOffset:
Top