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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.