UIDevice.ProximityMonitoringEnabled 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.
Whether the proximity sensor is available and enabled.
public virtual bool ProximityMonitoringEnabled { [Foundation.Export("isProximityMonitoringEnabled")] get; [Foundation.Export("setProximityMonitoringEnabled:")] set; }
member this.ProximityMonitoringEnabled : bool with get, set
Property Value
The default value is false
.
- Attributes
Remarks
Application developers who wish to monitor proximity should set this property to true
and then confirm that it has changed. On devices that do not support proximity warning, the setter will execute without raising an exception, but the value will remain false
.
This can be used from a background thread.