Language

PhotoPickerSelectionParams.Builder.SetMinMediaItemResolutionInPixels Method

Definition

Sets the minimum allowed resolution constraint for a media item to be selectable.

[Android.Runtime.Register("setMinMediaItemResolutionInPixels", "(J)Landroid/widget/photopicker/PhotoPickerSelectionParams$Builder;", "", ApiSince=37)]
public Android.Widget.PhotoPicker.PhotoPickerSelectionParams.Builder SetMinMediaItemResolutionInPixels(long minMediaItemResolutionInPixels);
[<Android.Runtime.Register("setMinMediaItemResolutionInPixels", "(J)Landroid/widget/photopicker/PhotoPickerSelectionParams$Builder;", "", ApiSince=37)>]
member this.SetMinMediaItemResolutionInPixels : int64 -> Android.Widget.PhotoPicker.PhotoPickerSelectionParams.Builder

Parameters

minMediaItemResolutionInPixels
Int64

The minimum allowed resolution in total pixels.

Returns

Attributes

Remarks

Sets the minimum allowed resolution constraint for a media item to be selectable.

Media items with a resolution lower than the provided threshold will be disabled for selection.

The minimum resolution should not be greater than the maximum resolution, or an exception will be thrown during the build() process.

If it is not set, no minimum resolution constraint will be enforced on the media items that the user can select.

Android reference for android.widget.photopicker.PhotoPickerSelectionParams.Builder.setMinMediaItemResolutionInPixels.

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