AppAction(String, String, String, String) Constructor

Definition

Initializes a new instance of the AppAction class.

public AppAction (string id, string title, string? subtitle = default, string? icon = default);
new Microsoft.Maui.ApplicationModel.AppAction : string * string * string * string -> Microsoft.Maui.ApplicationModel.AppAction
Public Sub New (id As String, title As String, Optional subtitle As String = Nothing, Optional icon As String = Nothing)

Parameters

id
String

A unique identifier used to respond to the action tap.

title
String

The visible title to display on the app icon.

subtitle
String

If supported, a sub-title to display under the title.

icon
String

An icon that is shown next to the title.

Exceptions

Thrown when either id or title is null.

Applies to