public abstract static class BoxPreviewActivity.IntentBuilder
extends java.lang.Object
| Constructor and Description |
|---|
BoxPreviewActivity.IntentBuilder(android.content.Context context,
BoxSession session,
BoxFile boxFile)
Create an new Intent Builder designed to create an intent to launch a child of BoxBrowseActivity.
|
| Modifier and Type | Method and Description |
|---|---|
android.content.Intent |
createIntent()
Create an intent to launch an instance of this activity.
|
protected abstract android.content.Intent |
createLaunchIntent() |
BoxPreviewActivity.IntentBuilder |
setBoxFolder(BoxFolder folder) |
<T extends BoxItemFilter & java.io.Serializable> |
setItemFilter(T serializablePreviewFilter) |
BoxPreviewActivity.IntentBuilder |
setItemList(BoxListItems items) |
<T extends PreviewStorage & java.io.Serializable> |
setPreviewStorage(T serializablePreviewStorage) |
public BoxPreviewActivity.IntentBuilder(android.content.Context context,
BoxSession session,
BoxFile boxFile)
context - current context.session - an authenticated session.public BoxPreviewActivity.IntentBuilder setItemList(BoxListItems items)
items - list of box items preview can page through.public BoxPreviewActivity.IntentBuilder setBoxFolder(BoxFolder folder)
folder - a folder a user can page through.public <T extends BoxItemFilter & java.io.Serializable> BoxPreviewActivity.IntentBuilder setItemFilter(T serializablePreviewFilter)
T - BoxItemFilter and SerializableserializablePreviewFilter - a filter that must implement Serializable that should be applied on items
from the provided folder. This method will not have an effect unless a folder is provided. (used when the folder is refreshed).public <T extends PreviewStorage & java.io.Serializable> BoxPreviewActivity.IntentBuilder setPreviewStorage(T serializablePreviewStorage)
T - PreviewStorage and SerializableserializablePreviewStorage - an implementation of preview storage and Serializable that should be used to store and retrieve cached previews. Any encryption
desired should go through this implementation.protected abstract android.content.Intent createLaunchIntent()
public android.content.Intent createIntent()