From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As Boolean )
BooleanValue = aDeviceData.IsProximityNear

New in 2020r2

Supported for all project types and targets.

If true, the device is near the user.


The ProximityMonitoringEnabled property must be True for this property to return accurate information. To preserver battery power, only set ProximityMonitoringEnabled to True while calling IsProximityNear and then set it to False as soon as you no longer need it.

Sample Code

Sample Code

If the device is near the user, display a message:

If System.Device.IsProximityNear Then
MessageBox("The device is close to you.")
End If

See Also

ProximityMonitoringEnabled property.