NotificationService

Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.

ShotInstanceservicenot creatablecomingPrograms

Up and coming

Show a Windows notification when something needs you and your program's window is hidden.

NotifyAsync shows the pop-up in the corner of the screen, with its entry in the notification list, and gives a Notification, a child of NotificationService until it is dismissed.

A service: write use NotificationService.

Passes shot check todayLuau
local function example(x : NotificationService)
	local note, why = x:NotifyAsync({ Title = "Usage", Text = "85% used", Tag = "usage" })
	print(note and note.Tag, why)
end

Methods

NameArgumentsReturnsDescription
NotifyAsync
yields
(options: { Title: string, Text: string, Tag: string?, Silent: boolean? })(Notification?, string?)Shows a Windows notification with the Title and Text given; it stays a child of NotificationService until dismissed.
From ShotInstance 33