public abstract static class BoxPreviewActivity.IntentBuilder
extends java.lang.Object
| Constructor and Description |
|---|
IntentBuilder(android.content.Context context,
com.box.androidsdk.content.models.BoxSession session,
com.box.androidsdk.content.models.BoxFile boxFile)
Create an new Intent Builder designed to create an intent to launch a child of BoxBrowseActivity.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.box.androidsdk.content.models.BoxFolder |
copyFolderWithNoItems(com.box.androidsdk.content.models.BoxFolder folder) |
android.content.Intent |
createIntent()
Create an intent to launch an instance of this activity.
|
protected abstract android.content.Intent |
createLaunchIntent() |
BoxPreviewActivity.IntentBuilder |
setBoxFolder(com.box.androidsdk.content.models.BoxFolder folder) |
<T extends BoxItemFilter & java.io.Serializable> |
setItemFilter(T serializablePreviewFilter) |
public IntentBuilder(android.content.Context context,
com.box.androidsdk.content.models.BoxSession session,
com.box.androidsdk.content.models.BoxFile boxFile)
context - current context.session - an authenticated session.boxFile - the BoxFile to preview.public BoxPreviewActivity.IntentBuilder setBoxFolder(com.box.androidsdk.content.models.BoxFolder folder)
folder - a folder a user can page through.protected com.box.androidsdk.content.models.BoxFolder copyFolderWithNoItems(com.box.androidsdk.content.models.BoxFolder folder)
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).protected abstract android.content.Intent createLaunchIntent()
public android.content.Intent createIntent()