Table of Contents

Class NotificationMessage

Namespace
Playnite.SDK
Assembly
Playnite.SDK.dll

Represents notification message;

public class NotificationMessage
Inheritance
NotificationMessage
Inherited Members

Constructors

NotificationMessage(string, string, NotificationType)

Creates new instance of NotificationMessage.

public NotificationMessage(string id, string text, NotificationType type)

Parameters

id string

Notification id.

text string

Notification text.

type NotificationType

Notification type.

NotificationMessage(string, string, NotificationType, Action)

Creates new instance of NotificationMessage.

public NotificationMessage(string id, string text, NotificationType type, Action action)

Parameters

id string

Notification id.

text string

Notification text.

type NotificationType

Notification type.

action Action

Action to be invoked when notification is activated.

Properties

ActivateCommand

Gets command to activate ActivationAction.

public ICommand ActivateCommand { get; }

Property Value

ICommand

ActivationAction

Gets action to be invoked when notification is activated.

public Action ActivationAction { get; }

Property Value

Action

CloseCommand

public ICommand CloseCommand { get; }

Property Value

ICommand

Id

Gets notification id.

public string Id { get; }

Property Value

string

Text

Gets notification content text.

public string Text { get; }

Property Value

string

Type

Gets notification type.

public NotificationType Type { get; }

Property Value

NotificationType

Events

Activated

Ivokes when ActivationAction is activated.

public event EventHandler Activated

Event Type

EventHandler

Closed

public event EventHandler Closed

Event Type

EventHandler