public abstract class BoxThreadPoolExecutorActivity
extends AppCompatActivity
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_ENDING_TASK |
protected static java.lang.String |
ACTION_STARTING_TASK |
static java.lang.String |
EXTRA_ITEM |
static java.lang.String |
EXTRA_SESSION |
protected BoxItem |
mItem |
protected BoxSession |
mSession |
| Constructor and Description |
|---|
BoxThreadPoolExecutorActivity() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.concurrent.ThreadPoolExecutor |
createTaskMessagingExecutor(android.app.Application application,
java.util.Queue<BoxResponse> responseQueue)
Creates a static ThreadPoolExecutor that is meant to be used in { #getApiExecutor(android.app.Application) getApiExecutor}.
|
protected void |
dismissSpinner()
Dismisses the spinner if it is currently showing
|
abstract java.util.concurrent.ThreadPoolExecutor |
getApiExecutor(android.app.Application application)
Returns the api executor for the activity
|
abstract java.util.Queue<BoxResponse> |
getResponseQueue()
Returns the queue that is used for holding the responses of completed {com.box.androidsdk.content.requests.BoxRequest}
|
protected abstract void |
handleBoxResponse(BoxResponse response)
Handler that will be called after a BoxRequest completes.
|
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onDestroy() |
protected void |
onSaveInstanceState(android.os.Bundle outState) |
protected void |
showSpinner()
Shows the spinner with the default wait messaging
|
protected void |
showSpinner(int stringTitleRes,
int stringRes)
Shows the spinner with a custom title and description
|
public static final java.lang.String EXTRA_ITEM
public static final java.lang.String EXTRA_SESSION
protected BoxSession mSession
protected BoxItem mItem
protected static final java.lang.String ACTION_STARTING_TASK
protected static final java.lang.String ACTION_ENDING_TASK
protected void onCreate(android.os.Bundle savedInstanceState)
protected void onSaveInstanceState(android.os.Bundle outState)
protected void onDestroy()
public abstract java.util.concurrent.ThreadPoolExecutor getApiExecutor(android.app.Application application)
application - the application context.public abstract java.util.Queue<BoxResponse> getResponseQueue()
protected abstract void handleBoxResponse(BoxResponse response)
response - the response object returned after a BoxRequest completesprotected void dismissSpinner()
protected void showSpinner()
protected void showSpinner(int stringTitleRes,
int stringRes)
stringTitleRes - string resource for the spinner titlestringRes - string resource for the spinner descriptionprotected static java.util.concurrent.ThreadPoolExecutor createTaskMessagingExecutor(android.app.Application application,
java.util.Queue<BoxResponse> responseQueue)
application - application context needed for the LocalBroadcastManagerresponseQueue - the queue that will hold all responses after the requests are completed. This should be provided through { #getResponseQueue()}