ActivityManager.TaskDescription.Builder.SetIcon(Int32) Method

Definition

Set the drawable resource of the icon to use in the TaskDescription.

[Android.Runtime.Register("setIcon", "(I)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=33)]
public Android.App.ActivityManager.TaskDescription.Builder SetIcon(int iconRes);
[<Android.Runtime.Register("setIcon", "(I)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=33)>]
member this.SetIcon : int -> Android.App.ActivityManager.TaskDescription.Builder

Parameters

iconRes
Int32

int: A drawable resource of an icon that represents the current state of this activity.

Returns

The same instance of the builder. This value cannot be null.

Attributes

Remarks

Set the drawable resource of the icon to use in the TaskDescription.

Android reference for android.app.ActivityManager.TaskDescription.Builder.setIcon.

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