Upravit

Sdílet prostřednictvím


UIDevice.ProximityMonitoringEnabled Property

Definition

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.

Applies to