LineDisplayAttributes.IsPowerNotifyEnabled Property
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.
Gets or sets whether the device is enabled to notify the user of power state changes.
public:
property bool IsPowerNotifyEnabled { bool get(); void set(bool value); };
bool IsPowerNotifyEnabled();
void IsPowerNotifyEnabled(bool value);
public bool IsPowerNotifyEnabled { get; set; }
var boolean = lineDisplayAttributes.isPowerNotifyEnabled;
lineDisplayAttributes.isPowerNotifyEnabled = boolean;
Public Property IsPowerNotifyEnabled As Boolean
Property Value
bool
True if power state notifications are enabled; otherwise, False.
Remarks
Power state notifications are delivered via ClaimedLineDisplay.StatusUpdated. The property's default value is False (meaning that the device does not send power state notifications even if the app is subscribed to the ClaimedLineDisplay.StatusUpdated event). This property can be set to True only when LineDisplayCapabilities.PowerReportingType is not set to UnknownPowerReportingType.
Changes to this property are committed to the device on the next call to ClaimedLineDisplay.TryUpdateAttributesAsync(LineDisplayAttributes).