public class ToolManagerBroadcastReceiver
extends android.content.BroadcastReceiver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEGIN_SUB_TOOL |
static java.lang.String |
BEGIN_TOOL |
static java.lang.String |
END_TOOL |
static java.lang.String |
INVOKE_METHOD_TOOL |
static java.lang.String |
TAG |
Modifier | Constructor and Description |
---|---|
protected |
ToolManagerBroadcastReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
void |
endCurrentTool() |
Tool |
getActiveTool() |
static ToolManagerBroadcastReceiver |
getInstance() |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
registerListener(ToolListener l) |
void |
registerTool(java.lang.String toolbarIdentifier,
Tool tool) |
void |
startTool(java.lang.String identifier,
android.os.Bundle extras)
Starts a tool synchronously (without going through an intent)
|
void |
unregisterListener(ToolListener l) |
void |
unregisterTool(java.lang.String toolbarIdentifier) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TAG
public static final java.lang.String BEGIN_TOOL
public static final java.lang.String BEGIN_SUB_TOOL
public static final java.lang.String END_TOOL
public static final java.lang.String INVOKE_METHOD_TOOL
public static ToolManagerBroadcastReceiver getInstance()
public void registerTool(java.lang.String toolbarIdentifier, Tool tool)
public void unregisterTool(java.lang.String toolbarIdentifier)
public void startTool(java.lang.String identifier, android.os.Bundle extras)
identifier
- Tool identifierextras
- Tool extraspublic void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
public void endCurrentTool()
public void dispose()
public Tool getActiveTool()
public void registerListener(ToolListener l)
public void unregisterListener(ToolListener l)