public abstract class AbstractSystemComponent
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractSystemComponent.Callback |
static class |
AbstractSystemComponent.SystemState
Notification for application state changes that may be relevent to the system component.
|
| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
appContext |
protected android.content.Context |
pluginContext |
| Constructor and Description |
|---|
AbstractSystemComponent() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
load()
Deprecated.
|
boolean |
load(AbstractSystemComponent.Callback callback)
Called as an async activity used during the setup of the component.
|
abstract void |
notify(AbstractSystemComponent.SystemState state)
Allows for an implementation to be notified when the app enters the state of PAUSED, RESUMED
and when the app is being destroyed.
|
void |
setAppContext(android.content.Context appContext) |
void |
setPluginContext(android.content.Context pluginContext)
Sets the plugin context for this component.
|
protected android.content.Context pluginContext
protected android.content.Context appContext
public void setPluginContext(android.content.Context pluginContext)
pluginContext - the plugin contextpublic void setAppContext(android.content.Context appContext)
@Deprecated public abstract void load()
load(Callback)public abstract void notify(AbstractSystemComponent.SystemState state)
state - the statepublic boolean load(AbstractSystemComponent.Callback callback)
callback - when the task is complete, the callback is made