AppAction(String, String, String, String) Constructor
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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.