Language

PhotoPickerSelectionParams.Builder.SetMaxMediaItemResolutionInPixels Method

Definition

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

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

Parameters

maxMediaItemResolutionInPixels
Int64

The maximum media item resolution in pixels

Returns

Attributes

Remarks

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

Items exceeding the provided resolution will be disabled for selection.

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

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

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

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