Language

AgentTaskEvent.Builder.SetBackground(Icon) Method

Definition

Selects the event background.

[Android.Runtime.Register("setBackground", "(Landroid/graphics/drawable/Icon;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)]
public Android.AgentIcon.AgentTaskEvent.Builder SetBackground(Android.Graphics.Drawables.Icon? background);
[<Android.Runtime.Register("setBackground", "(Landroid/graphics/drawable/Icon;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)>]
member this.SetBackground : Android.Graphics.Drawables.Icon -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

background
Icon

The background icon, or null to let the system choose a background.

Returns

This builder.

Attributes

Remarks

The system centers the scaled image within a mask while retaining its proportions. A wide image helps avoid cropping at the top and bottom.

Applies to