Skip to main content

Sending Notifications

To send a notification you need to use SmartifyOS.Notifications.

Then you can just do

NotificationManager.SendNotification(NotificationType.Info, "Hello World!");

NotificationManager

SendNotification

public static void SendNotification(NotificationType notificationType, string text, bool mute = false, float showTime = 5f)

Sends a new on screen notification

Parameters
notificationTypeChanges the color, sound and icon of the notification
textText of the notification
muteIf the notification should be muted
showTimeTime in seconds to show the notification

NotificationTypes

NotificationTypes
NotificationType.Info
NotificationType.Warning
NotificationType.Error