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-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal