AppAction
Namespace: Wisej.Hybrid.Shared.AppActions
Assembly: Wisej.Hybrid
App Actions allow you to define and expose specific actions or tasks that users can perform within your mobile app, which can be triggered from various entry points, such as the app's launcher icon.
- C#
- VB.NET
public class AppAction
Public Class AppAction
Constructors
AppAction()
Initializes a new instance of AppAction.
AppAction(id, title, subtitle, icon)
Initializes a new instance of AppAction with the given arguments.
| Name | Type | Description |
|---|---|---|
| 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. |
Throws:
- ArgumentNullException Thrown when either id or title is null.
Properties
Icon
String: Gets or sets the action icon.
The icon must be included in a ResourceDictionary on the client app. See: https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/appmodel/app-actions#more-information-about-app-actions.
Id
String: Gets or sets the unique identifier used to respond to the action tap.
Subtitle
String: Gets or sets a sub-title to display under the Microsoft.Maui.ApplicationModel.StartupAction.Title.
Not supported on all platforms.
Title
String: Gets or sets the visible title to display on the app icon.