Język

EmbeddedPhotoPickerFeatureInfo.Builder.SetHighlightType(Int32) Method

Definition

The app can choose to specify the highlight type i.e. the way in which the highlighted media results will be shown in the photopicker.

[Android.Runtime.Register("setHighlightType", "(I)Landroid/widget/photopicker/EmbeddedPhotoPickerFeatureInfo$Builder;", "", ApiSince=37)]
public Android.Widget.PhotoPicker.EmbeddedPhotoPickerFeatureInfo.Builder SetHighlightType(int highlightType);
[<Android.Runtime.Register("setHighlightType", "(I)Landroid/widget/photopicker/EmbeddedPhotoPickerFeatureInfo$Builder;", "", ApiSince=37)>]
member this.SetHighlightType : int -> Android.Widget.PhotoPicker.EmbeddedPhotoPickerFeatureInfo.Builder

Parameters

highlightType
Int32

One of the highlight type values listed in the remarks.

Returns

This builder with the highlight display type updated.

Attributes

Remarks

The app can choose to specify the highlight type i.e. the way in which the highlighted media results will be shown in the photopicker. The highlight type can be set for both album and search highlights.

The value can be one of:

  • Collapsed to show a highlighted media section in the photopicker.:
  • Expanded to show a highlighted media results grid. If this is the preferred highlight type, the embedded picker must be launched in the expanded state initially by the app itself and SetPickerLaunchedInExpandedState(Boolean) must be set to true to indicate the same. If the embedded picker's initial expanded state is found to be false, then the request for Expanded is ignored.:

The default highlight type value will be Collapsed. Any other input highlight value will result in IllegalArgumentException to be thrown.

This method takes an int value. Cast the MediaStorePickImagesHighlightType value to int before you pass it.

Android reference for android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo.Builder.setHighlightType.

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.

Applies to