public class BoxPreviewActivity extends BoxThreadPoolExecutorActivity implements BoxPreviewViewPager.BoxPreviewExecutorProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxPreviewActivity.IntentBuilder
Create a builder object that can be used to construct an intent to launch an instance of this activity.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTRA_FOLDER |
static java.lang.String |
EXTRA_LIST_ITEMS |
static java.lang.String |
EXTRA_PREVIEW_CONTROLLER |
protected BoxIteratorItems |
mBoxListItems |
protected BoxApiFile |
mFileApi |
protected BoxFolder |
mFolder |
protected BoxApiFolder |
mFolderApi |
protected BoxPreviewActivityImpl |
mImpl |
protected PreviewController |
mPreviewController |
ACTION_ENDING_TASK, ACTION_STARTING_TASK, EXTRA_ITEM, EXTRA_SESSION, mItem, mSession| Constructor and Description |
|---|
BoxPreviewActivity() |
| Modifier and Type | Method and Description |
|---|---|
static BoxPreviewActivity.IntentBuilder |
createIntentBuilder(android.content.Context context,
BoxSession session,
BoxFile boxFile) |
protected void |
dismissSpinner()
Dismisses the spinner if it is currently showing
|
java.util.concurrent.ThreadPoolExecutor |
getApiExecutor(android.app.Application application)
Returns the api executor for the activity
|
protected BoxPreviewActivityImpl |
getImplementation(BoxFile boxFile,
android.os.Bundle savedInstanceState)
Creates a UI Implementation depending on the BoxFile requested for preview
|
static android.content.Intent |
getLaunchIntent(android.content.Context context,
BoxSession session,
BoxFile boxFile) |
BoxPreviewViewPager.BoxPreviewExecutor |
getPreviewExecutor() |
java.util.Queue<BoxResponse> |
getResponseQueue()
Returns the queue that is used for holding the responses of completed {com.box.androidsdk.content.requests.BoxRequest}
|
protected void |
handleBoxResponse(BoxResponse response)
Handler that will be called after a BoxRequest completes.
|
protected void |
initToolbar()
Helper method to initialize the activity with the default toolbar for the Share SDK.
|
void |
onBackPressed() |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
boolean |
onCreateOptionsMenu(android.view.Menu menu) |
protected void |
onDestroy() |
boolean |
onOptionsItemSelected(android.view.MenuItem item) |
protected void |
onPause() |
boolean |
onPrepareOptionsMenu(android.view.Menu menu) |
protected void |
onRestoreInstanceState(android.os.Bundle savedInstanceState) |
protected void |
onResume() |
protected void |
onSaveInstanceState(android.os.Bundle outState) |
protected void |
onStart() |
protected void |
showSpinner()
Shows the spinner with the default wait messaging
|
createTaskMessagingExecutor, showSpinnerpublic static java.lang.String EXTRA_LIST_ITEMS
public static java.lang.String EXTRA_FOLDER
public static java.lang.String EXTRA_PREVIEW_CONTROLLER
protected BoxIteratorItems mBoxListItems
protected BoxFolder mFolder
protected BoxApiFolder mFolderApi
protected BoxApiFile mFileApi
protected BoxPreviewActivityImpl mImpl
protected PreviewController mPreviewController
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate in class BoxThreadPoolExecutorActivityprotected void initToolbar()
protected void dismissSpinner()
BoxThreadPoolExecutorActivitydismissSpinner in class BoxThreadPoolExecutorActivityprotected void showSpinner()
BoxThreadPoolExecutorActivityshowSpinner in class BoxThreadPoolExecutorActivityprotected BoxPreviewActivityImpl getImplementation(BoxFile boxFile, android.os.Bundle savedInstanceState)
boxFile - file requested for previewsavedInstanceState - savedInstance bundle from the activity.protected void onResume()
protected void onPause()
protected void onSaveInstanceState(android.os.Bundle outState)
onSaveInstanceState in class BoxThreadPoolExecutorActivityprotected void onRestoreInstanceState(android.os.Bundle savedInstanceState)
public BoxPreviewViewPager.BoxPreviewExecutor getPreviewExecutor()
getPreviewExecutor in interface BoxPreviewViewPager.BoxPreviewExecutorProviderpublic java.util.concurrent.ThreadPoolExecutor getApiExecutor(android.app.Application application)
BoxThreadPoolExecutorActivitygetApiExecutor in class BoxThreadPoolExecutorActivityapplication - the application context.public java.util.Queue<BoxResponse> getResponseQueue()
BoxThreadPoolExecutorActivitygetResponseQueue in class BoxThreadPoolExecutorActivityprotected void handleBoxResponse(BoxResponse response)
BoxThreadPoolExecutorActivityhandleBoxResponse in class BoxThreadPoolExecutorActivityresponse - the response object returned after a BoxRequest completespublic boolean onCreateOptionsMenu(android.view.Menu menu)
public boolean onPrepareOptionsMenu(android.view.Menu menu)
public boolean onOptionsItemSelected(android.view.MenuItem item)
public static android.content.Intent getLaunchIntent(android.content.Context context,
BoxSession session,
BoxFile boxFile)
public static BoxPreviewActivity.IntentBuilder createIntentBuilder(android.content.Context context, BoxSession session, BoxFile boxFile)
public void onBackPressed()
protected void onStart()
protected void onDestroy()
onDestroy in class BoxThreadPoolExecutorActivity