1using System.Collections.Concurrent;
2using System.Threading.Tasks;
24 public string Action {
get;
set; } =
string.Empty;
30 public string?
Data {
get;
set; }
50 [DefaultImplementation(typeof(IntentService))]
Represents an application intent containing an action, optional data, and an optional payload.
string? Data
Gets or sets the optional string data associated with the intent. This might be used for deep links.
string Action
Gets or sets the action associated with the intent.
object? Payload
Gets or sets an optional payload containing additional information (e.g. a cross‑platform NFC tag).
Defines the contract for a service that handles application intents.
void QueueIntent(AppIntent intent)
Queues an intent for later processing.
Task< string?> TryGetAndDequeueOnboardingUrl()
Processes a OpenUrl intent with onboarding by returning value
Task ProcessQueuedIntentsAsync()
Processes all queued intents asynchronously. This method should be called once the application is ful...
Task ProcessIntentAsync(AppIntent intent)
Processes a single intent asynchronously.