UISettingsController.SetMessageDuration(UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set the amount of time that notifications are shown through the Accessibility visual effects settings (Settings -> Accessibility -> Visual effects).
public:
virtual void SetMessageDuration(unsigned int value) = SetMessageDuration;
void SetMessageDuration(uint32_t const& value);
public void SetMessageDuration(uint value);
function setMessageDuration(value)
Public Sub SetMessageDuration (value As UInteger)
Parameters
- value
-
UInt32
unsigned int
uint32_t
The amount of time notifications are shown, in seconds.
Remarks
Important
This API requires the use of the IoT systemManagement capability, and the inclusion of iot in the IgnorableNamespaces list.
Add the following to the Package.appmanifest:
- To
<Package>
IgnorableNamespaces="iot"
- Under
<Capabilities>
<iot:Capability Name="systemManagement"/>