public class AndroidContextManager
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AndroidContextManager.AndroidContextChangeListener
Listener Interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContextChangeListener(AndroidContextManager.AndroidContextChangeListener l)
Adds a new Context Change Listener
|
boolean |
dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event) |
android.content.Context |
getAndroidContext()
Returns the last known Android Context or
null |
static AndroidContextManager |
getInstance()
Returns the Instance of this JadexAndroidContext
|
java.lang.String |
getUniqueDeviceName() |
void |
registerEventListener(IEventReceiver<?> rec) |
void |
removeContextChangeListener(AndroidContextManager.AndroidContextChangeListener l)
Removes a Context Change Listener
|
void |
setAndroidContext(android.content.Context contextProvidingActivity)
Sets a new Android Application Context.
|
boolean |
unregisterEventListener(IEventReceiver<?> rec) |
public static AndroidContextManager getInstance()
public void setAndroidContext(android.content.Context contextProvidingActivity)
null to unset
the previous application context.contextProvidingActivity - public android.content.Context getAndroidContext()
nullpublic void addContextChangeListener(AndroidContextManager.AndroidContextChangeListener l)
l - public void removeContextChangeListener(AndroidContextManager.AndroidContextChangeListener l)
l - public java.lang.String getUniqueDeviceName()
public void registerEventListener(IEventReceiver<?> rec)
public boolean dispatchEvent(jadex.bridge.service.types.context.IJadexAndroidEvent event)
public boolean unregisterEventListener(IEventReceiver<?> rec)