net.rim.device.api.lbs.travel
Interface TravelTimeListener


public interface TravelTimeListener

The asynchronous TravelTimeRequest reports its results to a class implementing this listener interface. The methods in this class are called from a worker thread, so any interaction with the event thread (for example, updating the UI screen) must be done using the Application.invokeLater() or Application.invokeAndWait() method.

Since:
BlackBerry API 6.0.0

Method Summary
 void onFailure(TravelTimeException exception)
          Called when an error has occurred while trying to obtain a travel time estimate.
 void onSuccess(TravelTime travelTime)
          Called when a travel time estimate is successfully retrieved from the Travel Time server.
 



Method Detail

onSuccess

void onSuccess(TravelTime travelTime)
Called when a travel time estimate is successfully retrieved from the Travel Time server. This method is called in a worker thread. To communicate with the event thread (for example, to update UI elements), use Application.invokeLater or Application.invokeAndWait.

Parameters:
travelTime - The travel time estimate.
Since:
BlackBerry API 6.0.0

onFailure

void onFailure(TravelTimeException exception)
Called when an error has occurred while trying to obtain a travel time estimate. This method is called in a worker thread. To communicate with the event thread (for example, to update UI elements), use Application.invokeLater or Application.invokeAndWait.

Parameters:
exception - Information about the error.
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.