public class UiLifecycleHelper extends Object
When using this class, clients MUST call all the public methods from the respective methods in either an Activity or Fragment. Failure to call all the methods can result in improperly initialized or uninitialized Sessions.
| Constructor and Description |
|---|
UiLifecycleHelper(Activity activity,
Session.StatusCallback callback)
Creates a new UiLifecycleHelper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
To be called from an Activity or Fragment's onActivityResult method.
|
void |
onCreate(android.os.Bundle savedInstanceState)
To be called from an Activity or Fragment's onCreate method.
|
void |
onDestroy()
To be called from an Activity or Fragment's onDestroy method.
|
void |
onPause()
To be called from an Activity or Fragment's onPause method.
|
void |
onResume()
To be called from an Activity or Fragment's onResume method.
|
void |
onSaveInstanceState(android.os.Bundle outState)
To be called from an Activity or Fragment's onSaveInstanceState method.
|
public UiLifecycleHelper(Activity activity, Session.StatusCallback callback)
activity - the Activity associated with the helper. If calling from a Fragment,
use Fragment.getActivity()callback - the callback for Session status changes, can be nullpublic void onCreate(android.os.Bundle savedInstanceState)
savedInstanceState - the previously saved statepublic void onResume()
public void onActivityResult(int requestCode,
int resultCode,
android.content.Intent data)
requestCode - the request coderesultCode - the result codedata - the result datapublic void onSaveInstanceState(android.os.Bundle outState)
outState - the bundle to save state inpublic void onPause()
public void onDestroy()
Copyright © 2013. All Rights Reserved.