Instance Property


A Boolean value indicating whether proximity monitoring is enabled (YES) or not (NO).


@property(nonatomic, getter=isProximityMonitoringEnabled) BOOL proximityMonitoringEnabled;


Enable proximity monitoring only when your application needs to be notified of changes to the proximity state. Otherwise, disable proximity monitoring. The default value is NO.

Not all iOS devices have proximity sensors. To determine if proximity monitoring is available, attempt to enable it. If the value of the proximityMonitoringEnabled property remains NO, proximity monitoring is not available.

See Also

Using the Proximity Sensor


A Boolean value indicating whether the proximity sensor is close to the user (YES) or not (NO).