public class BoxFolderRepo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxFolderRepo.BoxItemPosition |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
| Constructor and Description |
|---|
BoxFolderRepo(PreviewController controller) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeSelectedItem(com.box.androidsdk.content.models.BoxFile boxFile,
int optionalPos) |
androidx.lifecycle.LiveData<java.util.List<com.box.androidsdk.content.models.BoxFile>> |
getItems() |
androidx.lifecycle.LiveData<BoxFolderRepo.BoxItemPosition> |
getSelectedItem() |
void |
updateItems(com.box.androidsdk.content.models.BoxFolder folder,
com.box.androidsdk.content.models.BoxFile boxFile) |
public BoxFolderRepo(PreviewController controller)
public androidx.lifecycle.LiveData<java.util.List<com.box.androidsdk.content.models.BoxFile>> getItems()
public androidx.lifecycle.LiveData<BoxFolderRepo.BoxItemPosition> getSelectedItem()
public void updateItems(com.box.androidsdk.content.models.BoxFolder folder,
com.box.androidsdk.content.models.BoxFile boxFile)
public boolean changeSelectedItem(com.box.androidsdk.content.models.BoxFile boxFile,
int optionalPos)
boxFile - the file which should become the new selected item.optionalPos - the position in the filtered list the file is expected to be located at.
This is used solely as a performance optimization so if