public class State extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static interface |
State.ActionType |
static interface |
State.ViewMode |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
String[] |
acceptMimes |
int |
action |
static int |
ACTION_BROWSE |
static int |
ACTION_CREATE |
static int |
ACTION_GET_CONTENT |
static int |
ACTION_OPEN |
static int |
ACTION_OPEN_TREE |
static int |
ACTION_PICK_COPY_DESTINATION |
boolean |
allowMultiple |
int |
copyOperationSubType
This is basically a sub-type for the copy operation.
|
static Parcelable.ClassLoaderCreator<State> |
CREATOR |
int |
derivedMode
Derived from local preferences
|
int |
derivedSortOrder
Derived after loader
|
boolean |
directoryCopy |
HashMap<String,SparseArray<Parcelable>> |
dirState
Instance state for every shown directory
|
List<String> |
excludedAuthorities
Name of the package that started DocsUI
|
boolean |
external |
boolean |
forceSize |
boolean |
localOnly |
static int |
MODE_GRID |
static int |
MODE_LIST |
static int |
MODE_UNKNOWN |
boolean |
openableOnly |
boolean |
restored |
List<DocumentInfo> |
selectedDocumentsForCopy
Currently copying file
|
boolean |
showAdvanced |
boolean |
showAdvancedOption |
boolean |
showSize |
static int |
SORT_ORDER_DISPLAY_NAME |
static int |
SORT_ORDER_LAST_MODIFIED |
static int |
SORT_ORDER_SIZE |
static int |
SORT_ORDER_UNKNOWN |
DocumentStack |
stack
Current user navigation stack; empty implies recents.
|
int |
userSortOrder
Explicit user choice
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
boolean |
hasInitialLocationChanged() |
boolean |
hasLocationChanged() |
void |
initAcceptMimes(Intent intent) |
void |
onRootChanged(RootInfo root) |
void |
popDocument() |
void |
pushDocument(DocumentInfo info) |
void |
setStack(DocumentStack stack) |
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final int ACTION_BROWSE
public static final int ACTION_PICK_COPY_DESTINATION
public static final int ACTION_OPEN
public static final int ACTION_CREATE
public static final int ACTION_GET_CONTENT
public static final int ACTION_OPEN_TREE
public static final int MODE_UNKNOWN
public static final int MODE_LIST
public static final int MODE_GRID
public static final int SORT_ORDER_UNKNOWN
public static final int SORT_ORDER_DISPLAY_NAME
public static final int SORT_ORDER_LAST_MODIFIED
public static final int SORT_ORDER_SIZE
public int action
public String[] acceptMimes
public int derivedMode
public int userSortOrder
public int derivedSortOrder
public boolean allowMultiple
public boolean forceSize
public boolean showSize
public boolean localOnly
public boolean showAdvancedOption
public boolean showAdvanced
public boolean restored
public boolean external
public boolean directoryCopy
public boolean openableOnly
public int copyOperationSubType
public DocumentStack stack
public HashMap<String,SparseArray<Parcelable>> dirState
public List<DocumentInfo> selectedDocumentsForCopy
public static final Parcelable.ClassLoaderCreator<State> CREATOR
public void initAcceptMimes(Intent intent)
public void onRootChanged(RootInfo root)
public void pushDocument(DocumentInfo info)
public void popDocument()
public void setStack(DocumentStack stack)
public boolean hasLocationChanged()
public boolean hasInitialLocationChanged()
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.