Class Notification

    Definition

    Namespace:
    Tizen.NUI.Components
    Assembly:
    Tizen.NUI.Components.dll

    Notification helps to raise a notification window with a content View.

    public class Notification : Disposable, IDisposable
    Inheritance
    object
    Disposable
    Notification
    Implements
    System.IDisposable

    Constructors

    View Source

    Notification(View)

    Create a notification with a content View.

    Declaration
    public Notification(View contentView)
    Parameters
    Type Name Description
    View contentView

    The content view instance to display in the notification window.

    Exceptions
    Type Condition
    System.ArgumentException

    Thrown when a given contentView is invalid.

    Properties

    View Source

    ContentView

    The content view received in a constructor.

    Declaration
    public View ContentView { get; }
    Property Value
    Type Description
    View

    Methods

    View Source

    Dismiss()

    Dismiss the notification window.

    Declaration
    public void Dismiss()
    View Source

    Dispose(DisposeTypes)

    Dispose.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    Disposable.Dispose(DisposeTypes)
    View Source

    ForceQuit()

    Dismiss the notification window directly without waiting the onDismissAnimation finished.

    Declaration
    public void ForceQuit()
    View Source

    Post(uint)

    Post a notification window with the content view.

    Declaration
    public void Post(uint duration = 0)
    Parameters
    Type Name Description
    uint duration

    Dismiss the notification window after given time. The value 0 won't dismiss the notification.

    Exceptions
    Type Condition
    System.UnauthorizedAccessException

    Thrown when the application does not have proper privilege.

    View Source

    SetAnimationOnDismiss(Animation)

    Sets a user-defined animation to play when dismiss the notification. On dismiss, the given animation is played, and after the playback is completed the notification window is undisplayed.

    Declaration
    public Notification SetAnimationOnDismiss(Animation animation)
    Parameters
    Type Name Description
    Animation animation

    The animation to play.

    Returns
    Type Description
    Notification
    View Source

    SetAnimationOnPost(Animation)

    Sets a user-defined animation to play when posting the notification. The Notification will play the given animation right after the notification window pops up.

    Declaration
    public Notification SetAnimationOnPost(Animation animation)
    Parameters
    Type Name Description
    Animation animation

    The animation to play.

    Returns
    Type Description
    Notification
    View Source

    SetLevel(NotificationLevel)

    Sets a priority level for the specified notification window. The default level is NotificationLevel.Base.

    Declaration
    public Notification SetLevel(NotificationLevel level)
    Parameters
    Type Name Description
    NotificationLevel level

    The notification window level.

    Returns
    Type Description
    Notification

    The current Notification instance.

    Exceptions
    Type Condition
    System.UnauthorizedAccessException

    Thrown when the application does not have proper privilege.

    View Source

    SetPositionSize(Rectangle)

    Sets position and size of the notification window.

    Declaration
    public Notification SetPositionSize(Rectangle positionSize)
    Parameters
    Type Name Description
    Rectangle positionSize

    The position and size information in rectangle.

    Returns
    Type Description
    Notification

    The current Notification instance.

    Exceptions
    Type Condition
    System.ArgumentException

    Thrown when a given positionSize is invalid.

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX