Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
WindowsUserNotification.SetPriority
Sets the priority of the toast notification.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WindowsUserNotification | 13.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "WindowsUserNotification.SetPriority"; Notification; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Notification | The reference number for the Windows User Notification. | $Notification |
Value | The new setting. | 0 |
Result
Returns OK or error.
Description
Sets the priority of the toast notification.Requires Windows 10 Creators Update (introduced in 10.0.15063.0)
The priority setting provides hints on how and at what urgency level a notification should be presented to the user (whether to wake up the screen, etc). Whether the notification is displayed in high priority is based on the state and power management policy of the device.
Pass 1 for high and 0 for normal.
Value is -1 to take Windows’ default setting.
See also
- WindowsUserNotification.GetPriority
- WindowsUserNotification.ReleaseAll
- WindowsUserNotification.SetFileName
- WindowsUserNotification.SetGroup
- WindowsUserNotification.SetImagePath
- WindowsUserNotification.SetRemoteId
- WindowsUserNotification.SetScriptName
- WindowsUserNotification.SetTag
- WindowsUserNotification.SetText
- WindowsUserNotification.Setting
Release notes
- Version 13.1
- Added WindowsUserNotification.SetPriority and WindowsUserNotification.GetPriority functions.
Blog Entries
This function is free to use.
Created 21st January 2023, last changed 21st January 2023
WindowsUserNotification.SetNotificationMirroring - WindowsUserNotification.SetRemoteId