Share via


Icon.ResId Property

Definition

Gets the resource used to create this icon.

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

Property Value

Attributes

Remarks

Gets the resource used to create this icon.

Only valid for icons of type #TYPE_RESOURCE. Note: This resource may not be available if the application changes at all, and it is up to the caller to ensure safety if this resource is re-used and/or persisted.

Java documentation for android.graphics.drawable.Icon.getResId().

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