RadarReceiver

abstract class RadarReceiver

A receiver for client-side delivery of events, location updates, and debug logs. For more information, see .

See also

Constructors

RadarReceiver
Link copied to clipboard
fun RadarReceiver()

Functions

onClientLocationUpdated
Link copied to clipboard
abstract fun onClientLocationUpdated(context: Context, location: Location, stopped: Boolean, source: Radar.RadarLocationSource)
Tells the receiver that client's location was updated but not necessarily synced to the server.
onError
Link copied to clipboard
abstract fun onError(context: Context, status: Radar.RadarStatus)
Tells the receiver that a request failed.
onEventsReceived
Link copied to clipboard
abstract fun onEventsReceived(context: Context, events: Array<RadarEvent>, user: RadarUser?)
Tells the receiver that events were received.
onLocationUpdated
Link copied to clipboard
abstract fun onLocationUpdated(context: Context, location: Location, user: RadarUser)
Tells the receiver that the current user's location was updated and synced to the server.
onLog
Link copied to clipboard
abstract fun onLog(context: Context, message: String)
Tells the receiver that a debug log message was received.