MediaStore.ExtraPickImagesHighlightAlbum Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The name of an optional intent-extra used to allow apps to highlight media results of a
photopicker album in the photopicker UI whenever feasible based on the given input album in
MediaStore#KEY_PICK_IMAGES_HIGHLIGHT_ALBUM_ID.
[Android.Runtime.Register("EXTRA_PICK_IMAGES_HIGHLIGHT_ALBUM", ApiSince=36)]
public const string ExtraPickImagesHighlightAlbum;
[<Android.Runtime.Register("EXTRA_PICK_IMAGES_HIGHLIGHT_ALBUM", ApiSince=36)>]
val mutable ExtraPickImagesHighlightAlbum : string
Field Value
- Attributes
Remarks
The name of an optional intent-extra used to allow apps to highlight media results of a photopicker album in the photopicker UI whenever feasible based on the given input album in MediaStore#KEY_PICK_IMAGES_HIGHLIGHT_ALBUM_ID. The extra can only be specified in MediaStore#ACTION_PICK_IMAGES.
This intent extra will accept a Bundle object. The bundle object should have two keys specified. The first key MediaStore#KEY_PICK_IMAGES_HIGHLIGHT_TYPE will specify the type of media highlight the app wants to opt for and should be one of MediaStore#PICK_IMAGES_HIGHLIGHT_TYPE_COLLAPSED for a highlighted media section to be shown when the photopicker launches or MediaStore#PICK_IMAGES_HIGHLIGHT_TYPE_EXPANDED to open the photopicker to show a highlighted media results grid based on the given input album. Any other value for this key will result in throwing IllegalArgumentException. The second bundle key MediaStore#KEY_PICK_IMAGES_HIGHLIGHT_ALBUM_ID will specify the album to be highlighted and its value should be one of: MediaStore#PICK_IMAGES_HIGHLIGHT_ALBUM_FAVORITES for the Favorites album, MediaStore#PICK_IMAGES_HIGHLIGHT_ALBUM_CAMERA for the Camera album, MediaStore#PICK_IMAGES_HIGHLIGHT_ALBUM_SCREENSHOTS for the Screenshots album, MediaStore#PICK_IMAGES_HIGHLIGHT_ALBUM_VIDEOS for the Videos album and MediaStore#PICK_IMAGES_HIGHLIGHT_ALBUM_DOWNLOADS for the Downloads album. Any other value for this key will result in throwing IllegalArgumentException. Highlighting media results based on an input string text query is also supported. See MediaStore#EXTRA_PICK_IMAGES_HIGHLIGHT_SEARCH_RESULTS for more details. Only one of MediaStore#EXTRA_PICK_IMAGES_HIGHLIGHT_SEARCH_RESULTS or MediaStore#EXTRA_PICK_IMAGES_HIGHLIGHT_ALBUM should be used at any given time. Specifying both will result in IllegalArgumentException to be thrown.
Java documentation for android.provider.MediaStore.EXTRA_PICK_IMAGES_HIGHLIGHT_ALBUM.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.