UIDevice.ProximityMonitoringEnabled UIDevice.ProximityMonitoringEnabled Property

Definition

Whether the proximity sensor is available and enabled.

[get: Foundation.Export("isProximityMonitoringEnabled")]
[set: Foundation.Export("setProximityMonitoringEnabled:")]
public virtual bool ProximityMonitoringEnabled { get; set; }
member this.ProximityMonitoringEnabled : bool with get, set

Property Value

The default value is false.

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.

Applies to