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
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Control
    Toast
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    Toast()

    Construct Toast with null.

    Declaration
    public Toast()
    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

    View Source

    DurationProperty

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

    FontFamilyProperty

    FontFamilyProperty

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

    MessageProperty

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

    PointSizeProperty

    PointSizeProperty

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

    TextAlignmentProperty

    TextAlignmentProperty

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

    TextArrayProperty

    TextArrayProperty

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

    TextColorProperty

    TextColorProperty

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

    textLabels

    text labels

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

    TextLineHeightProperty

    TextLineHeightProperty

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

    TextLineSpaceProperty

    TextLineSpaceProperty

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

    TextPaddingProperty

    TextPaddingProperty

    Declaration
    public static readonly BindableProperty TextPaddingProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    Duration

    Gets or sets duration of toast.

    Declaration
    public uint Duration { get; set; }
    Property Value
    Type Description
    uint
    View Source

    FontFamily

    Gets or sets text font family in toast.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    string
    View Source

    Message

    Gets or sets the text toast.

    Declaration
    public string Message { get; set; }
    Property Value
    Type Description
    string
    View Source

    PointSize

    Gets or sets text point size in toast.

    Declaration
    public float PointSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    TextAlignment

    Gets or sets text horizontal alignment in toast.

    Declaration
    public HorizontalAlignment TextAlignment { get; set; }
    Property Value
    Type Description
    HorizontalAlignment
    View Source

    TextArray

    Gets or sets the text array of toast.

    Declaration
    public string[] TextArray { get; set; }
    Property Value
    Type Description
    string[]
    View Source

    TextColor

    Gets or sets text color in toast.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    TextLineHeight

    Gets or sets text line height in toast.

    Declaration
    public uint TextLineHeight { get; set; }
    Property Value
    Type Description
    uint
    View Source

    TextLineSpace

    Gets or sets text line space in toast.

    Declaration
    public uint TextLineSpace { get; set; }
    Property Value
    Type Description
    uint
    View Source

    TextPadding

    Gets or sets text padding in toast.

    Declaration
    public Extents TextPadding { get; set; }
    Property Value
    Type Description
    Extents

    Methods

    View Source

    ApplyStyle(ViewStyle)

    Apply style to toast.

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

    The style to apply.

    Overrides
    View.ApplyStyle(ViewStyle)
    View Source

    CreateViewStyle()

    Get Toast style.

    Declaration
    protected override ViewStyle CreateViewStyle()
    Returns
    Type Description
    ViewStyle

    The default toast style.

    Overrides
    Control.CreateViewStyle()
    View Source

    Dispose(DisposeTypes)

    Dispose ToastPopup.

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

    dispose types.

    Overrides
    Control.Dispose(DisposeTypes)
    View Source

    FromText(string, uint)

    Declaration
    public static Toast FromText(string text, uint duration)
    Parameters
    Type Name Description
    string text
    uint duration
    Returns
    Type Description
    Toast
    View Source

    OnInitialize()

    Overrides the parent method. This method is called by the framework when the instance is created.

    Declaration
    public override void OnInitialize()
    Overrides
    Control.OnInitialize()
    View Source

    Post(Window)

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

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX