Class Toast

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.

C#
Copy
public class Toast : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

Toast()

Construct Toast with null.

Declaration
C#
Copy
public Toast()
API Level: 6
View Source

Toast(String)

Constructor of the Toast class with special style.

Declaration
C#
Copy
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
C#
Copy
public Toast(ToastStyle toastStyle)
Parameters
Type Name Description
ToastStyle toastStyle

Construct Style

Fields

View Source

DurationProperty

Declaration
C#
Copy
public static readonly BindableProperty DurationProperty
Field Value
Type Description
BindableProperty
View Source

FontFamilyProperty

FontFamilyProperty

Declaration
C#
Copy
public static readonly BindableProperty FontFamilyProperty
Field Value
Type Description
BindableProperty
View Source

MessageProperty

Declaration
C#
Copy
public static readonly BindableProperty MessageProperty
Field Value
Type Description
BindableProperty
View Source

PointSizeProperty

PointSizeProperty

Declaration
C#
Copy
public static readonly BindableProperty PointSizeProperty
Field Value
Type Description
BindableProperty
View Source

TextAlignmentProperty

TextAlignmentProperty

Declaration
C#
Copy
public static readonly BindableProperty TextAlignmentProperty
Field Value
Type Description
BindableProperty
View Source

TextArrayProperty

TextArrayProperty

Declaration
C#
Copy
public static readonly BindableProperty TextArrayProperty
Field Value
Type Description
BindableProperty
View Source

TextColorProperty

TextColorProperty

Declaration
C#
Copy
public static readonly BindableProperty TextColorProperty
Field Value
Type Description
BindableProperty
View Source

textLabels

text labels

Declaration
C#
Copy
protected TextLabel[] textLabels
Field Value
Type Description
TextLabel[]
View Source

TextLineHeightProperty

TextLineHeightProperty

Declaration
C#
Copy
public static readonly BindableProperty TextLineHeightProperty
Field Value
Type Description
BindableProperty
View Source

TextLineSpaceProperty

TextLineSpaceProperty

Declaration
C#
Copy
public static readonly BindableProperty TextLineSpaceProperty
Field Value
Type Description
BindableProperty
View Source

TextPaddingProperty

TextPaddingProperty

Declaration
C#
Copy
public static readonly BindableProperty TextPaddingProperty
Field Value
Type Description
BindableProperty

Properties

View Source

Duration

Gets or sets duration of toast.

Declaration
C#
Copy
public uint Duration { get; set; }
Property Value
Type Description
UInt32
API Level: 6
View Source

FontFamily

Gets or sets text font family in toast.

Declaration
C#
Copy
public string FontFamily { get; set; }
Property Value
Type Description
String
API Level: 6
View Source

Message

Gets or sets the text toast.

Declaration
C#
Copy
public string Message { get; set; }
Property Value
Type Description
String
API Level: 6
View Source

PointSize

Gets or sets text point size in toast.

Declaration
C#
Copy
public float PointSize { get; set; }
Property Value
Type Description
Single
API Level: 6
View Source

TextAlignment

Gets or sets text horizontal alignment in toast.

Declaration
C#
Copy
public HorizontalAlignment TextAlignment { get; set; }
Property Value
Type Description
HorizontalAlignment
API Level: 6
View Source

TextArray

Gets or sets the text array of toast.

Declaration
C#
Copy
public string[] TextArray { get; set; }
Property Value
Type Description
String[]
API Level: 6
View Source

TextColor

Gets or sets text color in toast.

Declaration
C#
Copy
public Color TextColor { get; set; }
Property Value
Type Description
Color
API Level: 6
View Source

TextLineHeight

Gets or sets text line height in toast.

Declaration
C#
Copy
public uint TextLineHeight { get; set; }
Property Value
Type Description
UInt32
API Level: 6
View Source

TextLineSpace

Gets or sets text line space in toast.

Declaration
C#
Copy
public uint TextLineSpace { get; set; }
Property Value
Type Description
UInt32
API Level: 6
View Source

TextPadding

Gets or sets text padding in toast.

Declaration
C#
Copy
public Extents TextPadding { get; set; }
Property Value
Type Description
Extents
API Level: 6

Methods

View Source

ApplyStyle(ViewStyle)

Apply style to toast.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
View Source

CreateViewStyle()

Get Toast style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle

The default toast style.

Overrides
View Source

Dispose(DisposeTypes)

Dispose ToastPopup.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

dispose types.

Overrides
API Level: 6
View Source

FromText(String, UInt32)

Declaration
C#
Copy
public static Toast FromText(string text, uint duration)
Parameters
Type Name Description
String text
UInt32 duration
Returns
Type Description
Toast
View Source

OnInitialize()

Overrides the parent method.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

Post(Window)

Declaration
C#
Copy
public void Post(Window win)
Parameters
Type Name Description
Window win

Implements

Extension Methods