ProximitySensorReading.IsDetected 属性

定义

获取邻近感应传感器是否检测到对象。

public:
 property bool IsDetected { bool get(); };
bool IsDetected();
public bool IsDetected { get; }
var boolean = proximitySensorReading.isDetected;
Public ReadOnly Property IsDetected As Boolean

属性值

Boolean

bool

如果邻近感应传感器检测到对象,则为 True;否则为 false。

适用于