Język

MediaStore.Images.Thumbnails.GetKindSize(Int32) Method

Definition

Return the typical Size (in pixels) used internally when the given thumbnail kind is requested.

[Android.Runtime.Register("getKindSize", "(I)Landroid/util/Size;", "", ApiSince=30)]
public static Android.Util.Size GetKindSize(int kind);
[<Android.Runtime.Register("getKindSize", "(I)Landroid/util/Size;", "", ApiSince=30)>]
static member GetKindSize : int -> Android.Util.Size

Parameters

kind
Int32

A legacy size code: mini (1), full-screen (2), or micro (3).

Returns

The nominal size in pixels: 512 by 384 for mini, 1024 by 786 for full-screen, or 96 by 96 for micro.

Attributes

Remarks

This method was deprecated in API level 29. Callers should migrate to using ContentResolver.loadThumbnail, since it offers richer control over requested thumbnail sizes and cancellation behavior.

Android reference for android.provider.MediaStore.Images.Thumbnails.getKindSize.

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