EmbeddedPhotoPickerFeatureInfo
class EmbeddedPhotoPickerFeatureInfo : Parcelable
kotlin.Any | |
↳ | android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo |
An immutable parcel to carry information regarding desired features of caller for a given session.
Below features are currently supported in embedded photopicker.
- Mime type to filter media
- Accent color to change color of primary picker element
- Ordered selection of media items
- Max selection media count restriction
- Pre-selected uris
- Theme night mode
- Highlighting media results based on a given input query including highlighting media results from certain albums
Callers should use Builder
to set the desired features.
Summary
Nested classes | |
---|---|
Inherited constants | |
---|---|
Public methods | |
---|---|
Int | |
Long | |
String |
Returns the highlight album set by the app |
String |
Returns the highlight media text query set by the app |
Int | |
MutableList<String!> | |
MutableList<Uri!> | |
Int | |
Boolean | |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<EmbeddedPhotoPickerFeatureInfo!> |
Public methods
describeContents
Added in API level 36
fun describeContents(): Int
Return | |
---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getHighlightAlbumId
Added in U Extensions 19
fun getHighlightAlbumId(): String
Returns the highlight album set by the app
Return | |
---|---|
String |
This value cannot be null . |
getHighlightSearchMediaTextQuery
Added in U Extensions 19
fun getHighlightSearchMediaTextQuery(): String
Returns the highlight media text query set by the app
Return | |
---|---|
String |
This value cannot be null . |
getMimeTypes
fun getMimeTypes(): MutableList<String!>
Return | |
---|---|
MutableList<String!> |
This value cannot be null . |
getPreSelectedUris
fun getPreSelectedUris(): MutableList<Uri!>
Return | |
---|---|
MutableList<Uri!> |
This value cannot be null . |
toString
Added in API level 36
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
Added in API level 36
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Parameters | |
---|---|
dest |
Parcel: This value cannot be null . |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE . Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE , and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<EmbeddedPhotoPickerFeatureInfo!>