|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void onSuccess(TravelTime travelTime)
Application.invokeLater
or Application.invokeAndWait
.
travelTime
- The travel time estimate.void onFailure(TravelTimeException exception)
Application.invokeLater
or Application.invokeAndWait
.
exception
- Information about the error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.