PhotoPickerSelectionParams.Builder.SetMaxMediaItemSizeInBytes(Int64) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.