-
public abstract class RadarReceiver
-
-
Constructor Summary
Constructors Constructor Description RadarReceiver()
-
Method Summary
Modifier and Type Method Description abstract UnitonEventsReceived(Context context, Array<RadarEvent> events, RadarUser user)Tells the receiver that events were received. abstract UnitonLocationUpdated(Context context, Location location, RadarUser user)Tells the receiver that the current user's location was updated and synced to the server. abstract UnitonClientLocationUpdated(Context context, Location location, Boolean stopped, Radar.RadarLocationSource source)Tells the receiver that client's location was updated but not necessarily synced to the server. abstract UnitonError(Context context, Radar.RadarStatus status)Tells the receiver that a request failed. abstract UnitonLog(Context context, String message)Tells the receiver that a debug log message was received. -
-
Method Detail
-
onEventsReceived
abstract Unit onEventsReceived(Context context, Array<RadarEvent> events, RadarUser user)
Tells the receiver that events were received.
- Parameters:
context- The context.events- The events received.user- The user, if any.
-
onLocationUpdated
abstract Unit onLocationUpdated(Context context, Location location, RadarUser user)
Tells the receiver that the current user's location was updated and synced to the server.
- Parameters:
context- The context.location- The location.user- The current user.
-
onClientLocationUpdated
abstract Unit onClientLocationUpdated(Context context, Location location, Boolean stopped, Radar.RadarLocationSource source)
Tells the receiver that client's location was updated but not necessarily synced to the server. To receive server-synced location updates and user state, use onLocationUpdated instead.
- Parameters:
context- The context.location- The location.stopped- A boolean indicating whether the client is stopped.source- The source of the location.
-
onError
abstract Unit onError(Context context, Radar.RadarStatus status)
Tells the receiver that a request failed.
- Parameters:
context- The context.status- The status.
-
-
-
-