AgentTaskEvent.Builder.SetBackground(Icon) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.