Language

AgentTaskEvent.Builder.SetClickAction(PendingIntent) Method

Definition

Sets the action for a click on the event.

[Android.Runtime.Register("setClickAction", "(Landroid/app/PendingIntent;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)]
public Android.AgentIcon.AgentTaskEvent.Builder SetClickAction(Android.App.PendingIntent? action);
[<Android.Runtime.Register("setClickAction", "(Landroid/app/PendingIntent;)Landroid/agenticon/AgentTaskEvent$Builder;", "", ApiSince=37)>]
member this.SetClickAction : Android.App.PendingIntent -> Android.AgentIcon.AgentTaskEvent.Builder

Parameters

action
PendingIntent

An activity pending intent, or null to use the default event click action on supported systems.

Returns

This builder.

Attributes

Remarks

A non-null action that does not target an activity is rejected. When agent-task launches are supported, a null value uses the application's default agent-task action. Systems without launch support ignore this setting.

To receive the clicked element's screen bounds, use a mutable pending intent with SourceBounds.

Applies to