AFProximityStatus

sealed class AFProximityStatus

Represents the proximity status of a beacon. This sealed class has three possible states:

  • Nearby: The beacon is considered to be in close proximity.

  • beacon: The AFBeacon object representing the nearby beacon.

  • distanceMeters: An optional Double representing the estimated distance to the beacon in meters. This can be null if the distance cannot be determined.

  • Far: The beacon is detected but is not considered to be in close proximity.

  • beacon: The AFBeacon object representing the far beacon.

  • Unknown: The proximity status of the beacon cannot be determined.

  • beacon: The AFBeacon object for which the proximity is unknown.

Inheritors

Types

Link copied to clipboard
data class Far(val beacon: AFBeacon) : AFProximityStatus
Link copied to clipboard
data class Nearby(val beacon: AFBeacon, val distanceMeters: Double?) : AFProximityStatus
Link copied to clipboard
data class Unknown(val beacon: AFBeacon) : AFProximityStatus