JourneySharingSession

public abstract class JourneySharingSession extends Object
implements Session

A JourneySharingSession represents a tracking session for the TripModel used to create it. It can be provided as an argument to ConsumerController.showSession() to display UI that updates with received data.

Make sure to call stop() when the session is no longer needed, such as when the host activity is destroyed.

Public Method Summary

static JourneySharingSession
createInstance(TripModel trip)
Returns a JourneySharingSession for the specified ConsumerTrip.
TripInfo
ConsumerTrip
getTrip()
This method is deprecated. Instead use getTripModel().
String
TripModel
void
start()
Registers the internal manager callbacks for this session if they have not already been registered.
void
stop()
If internal manager callbacks are registered for this session, unregisters them.

Inherited Method Summary

Public Methods

public static JourneySharingSession createInstance (TripModel trip)

Returns a JourneySharingSession for the specified ConsumerTrip. Returns null if the provided ConsumerTrip is null.

public TripInfo getData ()

public ConsumerTrip getTrip ()

This method is deprecated.
Instead use getTripModel().

public String getTripId ()

public TripModel getTripModel ()

public void start ()

Registers the internal manager callbacks for this session if they have not already been registered.

public void stop ()

If internal manager callbacks are registered for this session, unregisters them.