PhotoPickerUiCustomizationParams.Builder.SetAspectRatio(Int32) 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 desired aspect ratio for the media grid thumbnails within the Photo Picker UI.
[Android.Runtime.Register("setAspectRatio", "(I)Landroid/widget/photopicker/PhotoPickerUiCustomizationParams$Builder;", "", ApiSince=37)]
public Android.Widget.PhotoPicker.PhotoPickerUiCustomizationParams.Builder SetAspectRatio(int aspectRatio);
[<Android.Runtime.Register("setAspectRatio", "(I)Landroid/widget/photopicker/PhotoPickerUiCustomizationParams$Builder;", "", ApiSince=37)>]
member this.SetAspectRatio : int -> Android.Widget.PhotoPicker.PhotoPickerUiCustomizationParams.Builder
Parameters
- aspectRatio
- Int32
The aspect ratio constant. Value is one of the following: PhotoPickerUiCustomizationParams.ASPECT_RATIO_UNDEFINED; PhotoPickerUiCustomizationParams.ASPECT_RATIO_SQUARE_1_1; PhotoPickerUiCustomizationParams.ASPECT_RATIO_PORTRAIT_9_16
Returns
- Attributes
Remarks
Sets the desired aspect ratio for the media grid thumbnails within the Photo Picker UI.
The value must be one of the following constants: PhotoPickerUiCustomizationParams.ASPECT_RATIO_UNDEFINED; PhotoPickerUiCustomizationParams.ASPECT_RATIO_SQUARE_1_1; PhotoPickerUiCustomizationParams.ASPECT_RATIO_PORTRAIT_9_16 Any other value will result in throwing IllegalArgumentException.
If not set, the PhotoPickerUiCustomizationParams.ASPECT_RATIO_UNDEFINED will be used.
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.