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.uwp.cs (1)
92
=> new
AppAction
(ArgumentsToId(item.Arguments), item.DisplayName, item.Description);
32 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 (23)
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.
AppActions\AppActions.uwp.cs (7)
15
public async Task<IEnumerable<
AppAction
>> GetAsync()
20
var actions = new List<
AppAction
>();
27
public async Task SetAsync(IEnumerable<
AppAction
> actions)
39
foreach (
var
a in actions)
67
var
appAction = actions.FirstOrDefault(a => a.Id == id);
91
internal static
AppAction
ToAction(this JumpListItem item)
94
internal static JumpListItem ToJumpListItem(this
AppAction
action)