Language

PhotoPickerUiCustomizationParams.AspectRatio Property

Definition

Returns the constant representing the aspect ratio currently configured for thumbnail sizing within the Photo Picker's media grid.

public int AspectRatio { [Android.Runtime.Register("getAspectRatio", "()I", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getAspectRatio", "()I", "", ApiSince=37)>]
member this.AspectRatio : int

Property Value

Value is one of the following: ASPECT_RATIO_UNDEFINED; ASPECT_RATIO_SQUARE_1_1; ASPECT_RATIO_PORTRAIT_9_16

Attributes

Remarks

Returns the constant representing the aspect ratio currently configured for thumbnail sizing within the Photo Picker's media grid. (e.g., ASPECT_RATIO_SQUARE_1_1).

If the aspect ratio is not set by the caller app using Builder.setAspectRatio(int), this method returns ASPECT_RATIO_UNDEFINED, indicating that the photo picker will use its default 1:1 media grid aspect ratio.

Android reference for android.widget.photopicker.PhotoPickerUiCustomizationParams.getAspectRatio.

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