![]() |
Rabbit Escape
2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
|
Public Member Functions | |
Lifecycle2SoundEvents (SoundResources< ActivityT > sound) | |
void | onRestart (ActivityT activity) |
void | onStart (ActivityT activity) |
void | onCreate (ActivityT activity) |
void | onResume (ActivityT activity) |
void | onSaveInstanceState (ActivityT activity) |
void | onPause (ActivityT activity) |
void | onStop (ActivityT activity) |
void | onDestroy (ActivityT activity) |
Private Attributes | |
final SoundResources< ActivityT > | sound |
Object | currentActivity |
Receive android lifecycle events, and do the right thing to a SoundResources based on them. I.e. dispose of everything if we are leaving the app, load everything if we are starting the app, pause if we are being suspended, and keep playing if we're just moving between activities.
rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.Lifecycle2SoundEvents | ( | SoundResources< ActivityT > | sound | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onCreate | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onDestroy | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onPause | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onRestart | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onResume | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onSaveInstanceState | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onStart | ( | ActivityT | activity | ) |
void rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.onStop | ( | ActivityT | activity | ) |
|
private |
|
private |