Table of Contents

Interface INotificationsAPI

Namespace
Playnite.SDK
Assembly
Playnite.SDK.dll

Describes notification API.

public interface INotificationsAPI

Properties

Count

Gets notification count.

int Count { get; }

Property Value

int

Messages

Gets list of all notification messages.

ObservableCollection<NotificationMessage> Messages { get; }

Property Value

ObservableCollection<NotificationMessage>

Methods

Add(NotificationMessage)

Adds new notification message.

void Add(NotificationMessage message)

Parameters

message NotificationMessage

Notification message

Add(string, string, NotificationType)

Adds new notification message.

void Add(string id, string text, NotificationType type)

Parameters

id string

Notification id.

text string

Notification text.

type NotificationType

Notification type.

Remove(string)

Removes specific notification.

void Remove(string id)

Parameters

id string

Notification id.

RemoveAll()

Removes all notifications.

void RemoveAll()