public abstract static class TinyBus.Wireable
extends java.lang.Object
TinyBus.wire(Wireable) method. Once wired, Wireable
instance will be started and stopped automatically, reflecting the
status of context to which the bus instance is bound.
If a bus is bound to an Activity, then Wireable
instance will be started when Activity starts and stopped
when Activity stops. If it is bound to the Application,
then it will only be started once and newer stopped.
| Modifier and Type | Field and Description |
|---|---|
protected Bus |
bus |
protected android.content.Context |
context |
| Constructor and Description |
|---|
Wireable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onCreate(Bus bus,
android.content.Context context) |
protected void |
onDestroy() |
protected void |
onStart() |
protected void |
onStop() |