Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 6
Use a toast to provide simple messages when the user does not need to make an additional action or confirmation.
Unlike other popups, a toast only has the body field as it is just used for providing simple feedback to user actions.
A toast will automatically disappear after a certain time.
public class Toast : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
Declaration
API Level: 6
View Source
Toast(String)
Constructor of the Toast class with special style.
Declaration
public Toast(string style)
Parameters
Type |
Name |
Description |
String |
style |
style name
|
View Source
Toast(ToastStyle)
The constructor of the Toast class with specific Style.
Declaration
public Toast(ToastStyle toastStyle)
Parameters
Type |
Name |
Description |
ToastStyle |
toastStyle |
Construct Style
|
Fields
Declaration
public static readonly BindableProperty DurationProperty
Field Value
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Declaration
public static readonly BindableProperty MessageProperty
Field Value
Declaration
public static readonly BindableProperty PointSizeProperty
Field Value
Declaration
public static readonly BindableProperty TextAlignmentProperty
Field Value
Declaration
public static readonly BindableProperty TextArrayProperty
Field Value
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
Declaration
protected TextLabel[] textLabels
Field Value
Declaration
public static readonly BindableProperty TextLineHeightProperty
Field Value
Declaration
public static readonly BindableProperty TextLineSpaceProperty
Field Value
Declaration
public static readonly BindableProperty TextPaddingProperty
Field Value
Properties
Declaration
public uint Duration { get; set; }
Property Value
API Level: 6
View Source
FontFamily
Gets or sets text font family in toast.
Declaration
public string FontFamily { get; set; }
Property Value
API Level: 6
Declaration
public string Message { get; set; }
Property Value
API Level: 6
View Source
PointSize
Gets or sets text point size in toast.
Declaration
public float PointSize { get; set; }
Property Value
API Level: 6
View Source
TextAlignment
Gets or sets text horizontal alignment in toast.
Declaration
public HorizontalAlignment TextAlignment { get; set; }
Property Value
API Level: 6
View Source
TextArray
Gets or sets the text array of toast.
Declaration
public string[] TextArray { get; set; }
Property Value
API Level: 6
View Source
TextColor
Gets or sets text color in toast.
Declaration
public Color TextColor { get; set; }
Property Value
API Level: 6
View Source
TextLineHeight
Gets or sets text line height in toast.
Declaration
public uint TextLineHeight { get; set; }
Property Value
API Level: 6
View Source
TextLineSpace
Gets or sets text line space in toast.
Declaration
public uint TextLineSpace { get; set; }
Property Value
API Level: 6
View Source
TextPadding
Gets or sets text padding in toast.
Declaration
public Extents TextPadding { get; set; }
Property Value
API Level: 6
Methods
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type |
Name |
Description |
ViewStyle |
viewStyle |
The style to apply.
|
Overrides
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type |
Description |
ViewStyle |
The default toast style.
|
Overrides
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
API Level: 6
Declaration
public static Toast FromText(string text, uint duration)
Parameters
Returns
View Source
OnInitialize()
Overrides the parent method.
Declaration
public override void OnInitialize()
Overrides
Declaration
public void Post(Window win)
Parameters
Type |
Name |
Description |
Window |
win |
|
Implements
Extension Methods