Rabbit Escape  2017-01-14_18:33:47_+0000__(tag:_v0.10.1)
Public Member Functions | Private Attributes | List of all members
rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT > Class Template Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

Member Function Documentation

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)

Member Data Documentation

Object rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.currentActivity
private
final SoundResources<ActivityT> rabbitescape.render.androidutil.Lifecycle2SoundEvents< ActivityT >.sound
private

The documentation for this class was generated from the following file: