AppAction(String, String, String, String) Constructor

Definition

Initializes a new instance of the AppAction class.

C#
public AppAction (string id, string title, string? subtitle = default, string? icon = default);

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

Product Versions
.NET MAUI 8, 9