public interface ISc2Monitor
One should always first test if the SC2 monitor is supported on the current platform with the isSupported()
method, and only then can other methods
be called.
Calling methods other than isSupported()
if the SC2 monitor is not supported results in undefined behavior (might be no effect, null
returned value or even an Exception being thrown).
IGameChangeListener
Modifier and Type | Method and Description |
---|---|
void |
addGameChangeListener(IGameChangeListener listener)
Adds an
IGameChangeListener which will be called when the game (status) changes. |
java.lang.Integer |
getApm()
Returns the current, live APM.
|
IGameStatus |
getGameStatus()
Returns the current game status.
|
long |
getGameStatusSince()
Returns the time when the current game status was detected.
The returned value is the number of milliseconds since January 1, 1970, 00:00:00 GMT. 0L is returned if it is unknown when current game status took effect (this is the case when the application starts). |
boolean |
isSupported()
Tells if the SC2 monitor service is supported on the current platform.
|
void |
removeGameChangeListener(IGameChangeListener listener)
Removes an
IGameChangeListener . |
boolean isSupported()
IGameStatus getGameStatus()
long getGameStatusSince()
0L
is returned if it is unknown when current game status took effect (this is the case when the application starts).void addGameChangeListener(IGameChangeListener listener)
IGameChangeListener
which will be called when the game (status) changes.listener
- listener to be addedremoveGameChangeListener(IGameChangeListener)
void removeGameChangeListener(IGameChangeListener listener)
IGameChangeListener
.listener
- listener to be removedaddGameChangeListener(IGameChangeListener)
java.lang.Integer getApm()
null
if some error occurred
This API documentation is public and is intended for / allowed to be used by anyone.
Scelight home page: https://sites.google.com/site/scelight/
Scelight is a trademark of András Belicza. Copyright © András Belicza, 2013-2015. All rights reserved.