Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IIntentService.cs
1using System.Collections.Concurrent;
2using System.Threading.Tasks;
4
6{
19 public class AppIntent
20 {
24 public string Action { get; set; } = string.Empty;
25
30 public string? Data { get; set; }
31
35 public object? Payload { get; set; }
36 }
37
50 [DefaultImplementation(typeof(IntentService))]
51 public interface IIntentService
52 {
57 void QueueIntent(AppIntent intent);
58
65
72
77 }
78}
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.