net.rim.device.api.util
Interface TimeSourceListener


public interface TimeSourceListener

Defines an interface for registering listeners onto a TimeSource to be able to receive callbacks when the TimeSource state changes between STATE_STOPPED, STATE_STARTED and STATE_PAUSED.

Registering an TimeSourceListener

To register an TimeSourceListener on an TimeSource perform the following:
 ...
 TimeSourceListener listener = new MyTimeSourceListener();
 TimeSource timeSource = new TimeSource();
 timeSource.addListener(listener);
 

See Also:
TimeSource
Since:
BlackBerry API 6.0.0

Method Summary
 void timeStateChanged(int state)
          Callback method for when the TimeSource time state changes.
 



Method Detail

timeStateChanged

void timeStateChanged(int state)
Callback method for when the TimeSource time state changes.

Parameters:
state - The new state of the TimeSource.

See Also:
TimeSource.start(), TimeSource.stop(), TimeSource.pause(), TimeSource.getState()
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.