2 instantiations of AppAction
Microsoft.Maui (1)
Hosting\EssentialsMauiAppBuilderExtensions.cs (1)
97 essentials.AddAppAction(new AppAction(id, title, subtitle, icon));
Microsoft.Maui.Essentials (1)
AppActions\AppActions.ios.cs (1)
59 return new AppAction(id, shortcutItem.LocalizedTitle, shortcutItem.LocalizedSubtitle, icon);
31 references to AppAction
Microsoft.Maui (9)
Hosting\EssentialsMauiAppBuilderExtensions.cs (9)
16 IEssentialsBuilder AddAppAction(AppAction appAction); 18 IEssentialsBuilder OnAppAction(Action<AppAction> action); 152 private static async void SetAppActions(IServiceProvider services, List<AppAction> appActions) 174 List<AppAction>? _appActions; 175 internal Action<AppAction>? AppActionHandlers; 178 internal List<AppAction>? AppActions => _appActions; 190 public IEssentialsBuilder AddAppAction(AppAction appAction) 192 _appActions ??= new List<AppAction>(); 197 public IEssentialsBuilder OnAppAction(Action<AppAction> action)
Microsoft.Maui.Essentials (22)
AppActions\AppActions.ios.cs (5)
16 public Task<IEnumerable<AppAction>> GetAsync() 24 public Task SetAsync(IEnumerable<AppAction> actions) 40 var appAction = shortcutItem.ToAppAction(); 49 internal static AppAction ToAppAction(this UIApplicationShortcutItem shortcutItem) 62 internal static UIApplicationShortcutItem ToShortcutItem(this AppAction action)
AppActions\AppActions.shared.cs (16)
19 /// Retrieves all the currently available <see cref="AppAction"/> instances. 21 /// <returns>A collection of <see cref="AppAction"/> available for this app.</returns> 22 Task<IEnumerable<AppAction>> GetAsync(); 27 /// <param name="actions">A collection of <see cref="AppAction"/> that is to be set for this app.</param> 29 Task SetAsync(IEnumerable<AppAction> actions); 84 /// Retrieves all the currently available <see cref="AppAction"/> instances. 86 /// <returns>A collection of <see cref="AppAction"/> available for this app.</returns> 87 public static Task<IEnumerable<AppAction>> GetAsync() 93 /// <param name="actions"><see cref="AppAction"/> objects that will be set for this app.</param> 95 public static Task SetAsync(params AppAction[] actions) 101 /// <param name="actions">A collection of <see cref="AppAction"/> that is to be set for this app.</param> 103 public static Task SetAsync(IEnumerable<AppAction> actions) 187 public AppActionEventArgs(AppAction appAction) 193 public AppAction AppAction { get; } 197 /// The <see cref="AppAction"/> class lets you create and respond to app shortcuts from the app icon. 202 /// Initializes a new instance of the <see cref="AppAction"/> class.
Platform\Platform.shared.cs (1)
107 /// Invokes the action that corresponds to the chosen <see cref="AppAction"/> by the user.