Language

PhotoPickerSelectionParams.Builder.SetMaxVideoDuration(Duration) Method

Definition

Sets the maximum allowed duration for a video media item to be selectable.

[Android.Runtime.Register("setMaxVideoDuration", "(Ljava/time/Duration;)Landroid/widget/photopicker/PhotoPickerSelectionParams$Builder;", "", ApiSince=37)]
public Android.Widget.PhotoPicker.PhotoPickerSelectionParams.Builder SetMaxVideoDuration(Java.Time.Duration maxVideoDuration);
[<Android.Runtime.Register("setMaxVideoDuration", "(Ljava/time/Duration;)Landroid/widget/photopicker/PhotoPickerSelectionParams$Builder;", "", ApiSince=37)>]
member this.SetMaxVideoDuration : Java.Time.Duration -> Android.Widget.PhotoPicker.PhotoPickerSelectionParams.Builder

Parameters

maxVideoDuration
Duration

The maximum video duration. This value cannot be null.

Returns

Attributes

Remarks

Sets the maximum allowed duration for a video media item to be selectable.

Videos exceeding this duration will be disabled for selection.

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

If it is not set, no maximum video duration constraint will be enforced on the videos that the user can select.

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

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