Public Member Functions | |
void | setTriggersDirty () |
WindowToken | getWindowByName (String name) |
boolean | isWindowShowing () |
void | attatchWindowSettingsChangedListener (WindowToken w) |
int | getStatusBarHeight () |
int | getTitleBarHeight () |
void | buildTriggerSystem () |
String | getDisplayName () |
String | getHostName () |
int | getPort () |
Context | getContext () |
SettingsChangedListener | getSettingsListener () |
void | callPlugin (String plugin, String function, String data) |
boolean | pluginSupports (String plugin, String function) |
Callback interface for plugins to interact with their parent Connection.
void com.offsetnull.bt.service.ConnectionPluginCallback.attatchWindowSettingsChangedListener | ( | WindowToken | w | ) |
Attaches a window settings changed listener to the target window.
w | WindowToken to attach a listener to. |
void com.offsetnull.bt.service.ConnectionPluginCallback.buildTriggerSystem | ( | ) |
Causes an immediate rebuild of the trigger system.
Implemented in com.offsetnull.bt.service.Connection.
void com.offsetnull.bt.service.ConnectionPluginCallback.callPlugin | ( | String | plugin, |
String | function, | ||
String | data | ||
) |
Calls a function in a target plugin.
plugin | The target plugin. |
function | The target function. |
data | Arugment to supply to target |
Context com.offsetnull.bt.service.ConnectionPluginCallback.getContext | ( | ) |
Gets the application context.
Implemented in com.offsetnull.bt.service.Connection.
String com.offsetnull.bt.service.ConnectionPluginCallback.getDisplayName | ( | ) |
Gets the display name for the Connection.
Implemented in com.offsetnull.bt.service.Connection.
String com.offsetnull.bt.service.ConnectionPluginCallback.getHostName | ( | ) |
Gets the host name for the Connection.
Implemented in com.offsetnull.bt.service.Connection.
int com.offsetnull.bt.service.ConnectionPluginCallback.getPort | ( | ) |
Gets the port number for the Connection.
Implemented in com.offsetnull.bt.service.Connection.
SettingsChangedListener com.offsetnull.bt.service.ConnectionPluginCallback.getSettingsListener | ( | ) |
Gets the default SettingsChangedListener used by the parent Connection.
Implemented in com.offsetnull.bt.service.Connection.
int com.offsetnull.bt.service.ConnectionPluginCallback.getStatusBarHeight | ( | ) |
Gets the status bar height.
Implemented in com.offsetnull.bt.service.Connection.
int com.offsetnull.bt.service.ConnectionPluginCallback.getTitleBarHeight | ( | ) |
Gets the title bar height.
Implemented in com.offsetnull.bt.service.Connection.
WindowToken com.offsetnull.bt.service.ConnectionPluginCallback.getWindowByName | ( | String | name | ) |
Finds a window by name.
name | Desired window name. |
boolean com.offsetnull.bt.service.ConnectionPluginCallback.isWindowShowing | ( | ) |
Interrogates the foreground window as to its visibility state.
Implemented in com.offsetnull.bt.service.Connection.
boolean com.offsetnull.bt.service.ConnectionPluginCallback.pluginSupports | ( | String | plugin, |
String | function | ||
) |
Tests weather a plugin supports a given function.
plugin | The target plugin. |
function | The target function name to test. |
void com.offsetnull.bt.service.ConnectionPluginCallback.setTriggersDirty | ( | ) |
Sets the plugin system dirty bit.
Implemented in com.offsetnull.bt.service.Connection.