Skip to main content

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.

public class AppAction

Constructors

Instance memberAppAction()

Initializes a new instance of AppAction.

Instance memberAppAction(id, title, subtitle, icon)

Initializes a new instance of AppAction with the given arguments.

NameTypeDescription
idStringA unique identifier used to respond to the action tap.
titleStringThe visible title to display on the app icon.
subtitleStringIf supported, a sub-title to display under the title.
iconStringAn icon that is shown next to the title.

Throws:

Properties

Instance memberIcon

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.

Instance memberId

String: Gets or sets the unique identifier used to respond to the action tap.

Instance memberSubtitle

String: Gets or sets a sub-title to display under the Microsoft.Maui.ApplicationModel.StartupAction.Title.

Not supported on all platforms.

Instance memberTitle

String: Gets or sets the visible title to display on the app icon.