Instance Property

proximityState

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

Declaration

var proximityState: Bool { get }

See Also

Using the Proximity Sensor

var isProximityMonitoringEnabled: Bool

A Boolean value indicating whether proximity monitoring is enabled (true) or not (false).

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software