Package 

Class RadarReceiver


  • 
    public abstract class RadarReceiver
    
                        

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

    • Constructor Detail

      • RadarReceiver

        RadarReceiver()
    • Method Detail

      • 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.
      • onLog

         abstract Unit onLog(Context context, String message)

        Tells the receiver that a debug log message was received.

        Parameters:
        message - The message.