onComplete

abstract fun onComplete(status: Radar.RadarStatus, location: Location? = null, events: Array<RadarEvent>? = null, user: RadarUser? = null)

Called when a track request succeeds, fails, or times out. Receives the request status and, if successful, the user's location, an array of the events generated, and the user.

Parameters

status

RadarStatus The request status.

location

Location? If successful, the user's location.

events

Array? If successful, an array of the events generated.

user

RadarUser? If successful, the user.