다음을 통해 공유


LineDisplayAttributes.IsPowerNotifyEnabled 속성

정의

디바이스가 전원 상태 변경 내용을 사용자에게 알릴 수 있는지 여부를 가져오거나 설정합니다.

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

속성 값

Boolean

bool

True이면 전원 상태 알림을 사용할 수 있습니다. 그렇지 않으면 False입니다.

설명

전원 상태 알림은 ClaimedLineDisplay.StatusUpdated를 통해 전달됩니다. 속성의 기본값은 False입니다(앱이 ClaimedLineDisplay.StatusUpdated 이벤트를 구독하는 경우에도 디바이스가 전원 상태 알림을 보내지 않음을 의미함). LineDisplayCapabilities.PowerReportingType이 UnknownPowerReportingType으로 설정되지 않은 경우에만 이 속성을 True로 설정할 수 있습니다.

이 속성에 대한 변경 내용은 ClaimedLineDisplay.TryUpdateAttributesAsync(LineDisplayAttributes)에 대한 다음 호출 시 디바이스에 커밋됩니다.

적용 대상

추가 정보