Sdílet prostřednictvím


UISettingsController.SetMessageDuration(UInt32) Method

Definition

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"/>

Applies to

See also