Language

PhotoPickerSelectionParams.Builder.SetMaxSelectionBatchSizeInBytes Method

Definition

Sets the maximum allowed cumulative size, in bytes, for the entire batch of selected media items.

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

Parameters

maxSelectionBatchSizeInBytes
Int64

The maximum batch size in bytes.

Returns

Attributes

Remarks

Sets the maximum allowed cumulative size, in bytes, for the entire batch of selected media items.

This limits the total aggregate size of the media selected by the user. If a new selection causes the total size to exceed this limit, the user will be alerted that they have reached the maximum selection size limit and must deselect items before proceeding.

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

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

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