AgentTaskState.Builder.SetClickAction(PendingIntent) 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.
Sets the action for a click on the state icon.
[Android.Runtime.Register("setClickAction", "(Landroid/app/PendingIntent;)Landroid/agenticon/AgentTaskState$Builder;", "", ApiSince=37)]
public Android.AgentIcon.AgentTaskState.Builder SetClickAction(Android.App.PendingIntent? action);
[<Android.Runtime.Register("setClickAction", "(Landroid/app/PendingIntent;)Landroid/agenticon/AgentTaskState$Builder;", "", ApiSince=37)>]
member this.SetClickAction : Android.App.PendingIntent -> Android.AgentIcon.AgentTaskState.Builder
Parameters
- action
- PendingIntent
An activity pending intent, or null for no click action.
Returns
This builder.
- Attributes
Remarks
A non-null action that does not target an activity is rejected. Systems without agent-task launch support ignore this action; on supported systems a null action makes the icon non-clickable.
To receive the clicked element's screen bounds, use a mutable pending intent with SourceBounds.