Share via


ImageDecoder.MemorySizePolicy Property

Definition

Retrieve the memory policy for the decoded Bitmap. -or- Specify the memory policy for the decoded Bitmap.

public Android.Graphics.ImageDecoderMemoryPolicy MemorySizePolicy { [Android.Runtime.Register("getMemorySizePolicy", "()I", "", ApiSince=28)] get; [Android.Runtime.Register("setMemorySizePolicy", "(I)V", "", ApiSince=28)] set; }
[<get: Android.Runtime.Register("getMemorySizePolicy", "()I", "", ApiSince=28)>]
[<set: Android.Runtime.Register("setMemorySizePolicy", "(I)V", "", ApiSince=28)>]
member this.MemorySizePolicy : Android.Graphics.ImageDecoderMemoryPolicy with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Retrieve the memory policy for the decoded Bitmap.

Java documentation for android.graphics.ImageDecoder.getMemorySizePolicy().

Property setter documentation:

Specify the memory policy for the decoded Bitmap.

Like all setters on ImageDecoder, this must be called inside OnHeaderDecodedListener#onHeaderDecoded onHeaderDecoded.

Java documentation for android.graphics.ImageDecoder.setMemorySizePolicy(int).

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