Class ToastStyle
How toasts look. Colors take anything a view's color attributes take, "{Resource id}" included, and are resolved when drawn - so a toast follows a theme change like a view does. Sizes are at a UI scale of 1 and grow with it.
public class ToastStyle
- Inheritance
-
ToastStyle
- Inherited Members
Properties
BackgroundColor
The colour of the toast's background.
public string BackgroundColor { get; set; }
Property Value
BorderColor
The colour of the border around the toast.
public string BorderColor { get; set; }
Property Value
BottomMargin
Distance from the bottom of the window to the lowest toast, at scale 1.
public float BottomMargin { get; set; }
Property Value
ErrorColor
The accent colour of an Error toast.
public string ErrorColor { get; set; }
Property Value
Font
A .ttf/.otf path or a BMFont; null uses the engine's built-in font.
public string Font { get; set; }
Property Value
FontSize
The size of the message's text, in pixels at a UI scale of 1.
public float FontSize { get; set; }
Property Value
InfoColor
The accent colour of an Info toast.
public string InfoColor { get; set; }
Property Value
MaxWidth
Longest a toast may be before its text wraps, at scale 1.
public float MaxWidth { get; set; }
Property Value
ProgressColor
The accent colour of a Progress toast.
public string ProgressColor { get; set; }
Property Value
SuccessColor
The accent colour of a Success toast.
public string SuccessColor { get; set; }
Property Value
TextColor
The colour of the message.
public string TextColor { get; set; }