Language

PhotoPickerSelectionParams.MaxVideoDuration Property

Definition

Returns the maximum allowed duration for a video to be selectable.

public Java.Time.Duration? MaxVideoDuration { [Android.Runtime.Register("getMaxVideoDuration", "()Ljava/time/Duration;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getMaxVideoDuration", "()Ljava/time/Duration;", "", ApiSince=37)>]
member this.MaxVideoDuration : Java.Time.Duration

Property Value

Returns the maximum allowed duration for a video to be selectable.

Attributes

Remarks

Returns the maximum allowed duration for a video to be selectable.

If the maximum video duration is not set by the caller app using Builder.setMaxVideoDuration(Duration), this method returns null, indicating that the photo picker will not restrict selection based on the maximum video duration.

Android reference for android.widget.photopicker.PhotoPickerSelectionParams.getMaxVideoDuration.

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