Class Toast
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
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, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceToast()
Construct Toast with null.
Declaration
public Toast()
Toast(string)
Constructor of the Toast class with special style.
Declaration
public Toast(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | style name |
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
View SourceDurationProperty
Declaration
public static readonly BindableProperty DurationProperty
Field Value
Type | Description |
---|---|
BindableProperty |
FontFamilyProperty
FontFamilyProperty
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MessageProperty
Declaration
public static readonly BindableProperty MessageProperty
Field Value
Type | Description |
---|---|
BindableProperty |
PointSizeProperty
PointSizeProperty
Declaration
public static readonly BindableProperty PointSizeProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextAlignmentProperty
TextAlignmentProperty
Declaration
public static readonly BindableProperty TextAlignmentProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextArrayProperty
TextArrayProperty
Declaration
public static readonly BindableProperty TextArrayProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextColorProperty
TextColorProperty
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
Type | Description |
---|---|
BindableProperty |
textLabels
text labels
Declaration
protected TextLabel[] textLabels
Field Value
Type | Description |
---|---|
TextLabel[] |
TextLineHeightProperty
TextLineHeightProperty
Declaration
public static readonly BindableProperty TextLineHeightProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextLineSpaceProperty
TextLineSpaceProperty
Declaration
public static readonly BindableProperty TextLineSpaceProperty
Field Value
Type | Description |
---|---|
BindableProperty |
TextPaddingProperty
TextPaddingProperty
Declaration
public static readonly BindableProperty TextPaddingProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
View SourceDuration
Gets or sets duration of toast.
Declaration
public uint Duration { get; set; }
Property Value
Type | Description |
---|---|
uint |
FontFamily
Gets or sets text font family in toast.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
string |
Message
Gets or sets the text toast.
Declaration
public string Message { get; set; }
Property Value
Type | Description |
---|---|
string |
PointSize
Gets or sets text point size in toast.
Declaration
public float PointSize { get; set; }
Property Value
Type | Description |
---|---|
float |
TextAlignment
Gets or sets text horizontal alignment in toast.
Declaration
public HorizontalAlignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
HorizontalAlignment |
TextArray
Gets or sets the text array of toast.
Declaration
public string[] TextArray { get; set; }
Property Value
Type | Description |
---|---|
string[] |
TextColor
Gets or sets text color in toast.
Declaration
public Color TextColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
TextLineHeight
Gets or sets text line height in toast.
Declaration
public uint TextLineHeight { get; set; }
Property Value
Type | Description |
---|---|
uint |
TextLineSpace
Gets or sets text line space in toast.
Declaration
public uint TextLineSpace { get; set; }
Property Value
Type | Description |
---|---|
uint |
TextPadding
Gets or sets text padding in toast.
Declaration
public Extents TextPadding { get; set; }
Property Value
Type | Description |
---|---|
Extents |
Methods
View SourceApplyStyle(ViewStyle)
Apply style to toast.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateViewStyle()
Get Toast style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle | The default toast style. |
Overrides
View SourceDispose(DisposeTypes)
Dispose ToastPopup.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | dispose types. |
Overrides
View SourceFromText(string, uint)
Declaration
public static Toast FromText(string text, uint duration)
Parameters
Type | Name | Description |
---|---|---|
string | text | |
uint | duration |
Returns
Type | Description |
---|---|
Toast |
OnInitialize()
Declaration
public override void OnInitialize()
Overrides
View SourcePost(Window)
Declaration
public void Post(Window win)
Parameters
Type | Name | Description |
---|---|---|
Window | win |