UIKit.UIDevice.ProximityMonitoringEnabled Property
Whether the proximity sensor is available and enabled.

Syntax

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

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.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0