共用方式為


HumanPresenceSensorReading.OnlookerPresence 屬性

定義

取得是否偵測到主要使用者以外的人員並與裝置互動。

public:
 property HumanPresence OnlookerPresence { HumanPresence get(); };
HumanPresence OnlookerPresence();
public HumanPresence OnlookerPresence { get; }
var humanPresence = humanPresenceSensorReading.onlookerPresence;
Public ReadOnly Property OnlookerPresence As HumanPresence

屬性值

HumanPresenceSensor 所報告的偵測狀態。

Windows 需求

裝置系列
Windows 11 Insider Preview (已於 10.0.26100.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v19.0 引進)

備註

有助於解決隱私權考慮。 例如,使用者可能會想要在偵測到另一個人時自動將畫面變暗。

適用於

另請參閱