Language

PhotoPickerSelectionParams.Builder.SetMaxMediaItemSizeInBytes(Int64) Method

Definition

Sets the maximum allowed size, in bytes, for any individual media item to be selectable.

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

Parameters

maxMediaItemSizeInBytes
Int64

The maximum size in bytes.

Returns

Attributes

Remarks

Sets the maximum allowed size, in bytes, for any individual media item to be selectable.

The calling application can set this to limit the size of media returned by the PhotoPicker. Items exceeding this limit will be disabled for selection.

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

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

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