次の方法で共有


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) の次回の呼び出しでデバイスにコミットされます。

適用対象

こちらもご覧ください