Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IPlatformSpecific.cs
2
4{
8 public interface IPlatformSpecific : IDisposable
9 {
14
18 bool ProhibitScreenCapture { get; set; }
19
23 string? GetDeviceId();
24
29
37 void ShareImage(byte[] PngFile, string Message, string Title, string FileName);
38
39
40 /*
45 Task<byte[]> CaptureScreen(int blurRadius);
46 */
51
57
67 Task<bool> AuthenticateUserFingerprint(string Title, string? Subtitle, string Description, string Cancel, CancellationToken? CancellationToken);
68
73 Task<TokenInformation> GetPushNotificationToken();
74
75 #region Keyboard
80
84 event EventHandler<KeyboardSizeMessage>? KeyboardShown;
88 event EventHandler<KeyboardSizeMessage>? KeyboardHidden;
92 event EventHandler<KeyboardSizeMessage>? KeyboardSizeChanged;
93
94 #endregion
95
96 #region Notifications
97
98 public void ShowMessageNotification(string Title, string MessageBody, IDictionary<string, string> Data);
99 public void ShowIdentitiesNotification(string Title, string MessageBody, IDictionary<string, string> Data);
100 public void ShowPetitionNotification(string Title, string MessageBody, IDictionary<string, string> Data);
101 public void ShowContractsNotification(string Title, string MessageBody, IDictionary<string, string> Data);
102 public void ShowEDalerNotification(string Title, string MessageBody, IDictionary<string, string> Data);
103 public void ShowTokenNotification(string Title, string MessageBody, IDictionary<string, string> Data);
104 public void ShowProvisioningNotification(string Title, string MessageBody, IDictionary<string, string> Data);
105
106
107
108 #endregion
109
114 Thickness GetInsets();
115
116 }
117}
Interface for platform-specific functions.
Task< bool > AuthenticateUserFingerprint(string Title, string? Subtitle, string Description, string Cancel, CancellationToken? CancellationToken)
Authenticates the user using the fingerprint sensor.
bool ProhibitScreenCapture
If screen capture is prohibited or not.
Task< TokenInformation > GetPushNotificationToken()
Gets a Push Notification token for the device.
BiometricMethod GetBiometricMethod()
Gets the biometric method supported by the device.
bool CanProhibitScreenCapture
If screen capture prohibition is supported
string? GetDeviceId()
Gets the ID of the device
EventHandler< KeyboardSizeMessage >? KeyboardShown
Event that is triggered when the keyboard is shown
EventHandler< KeyboardSizeMessage >? KeyboardHidden
Event that is triggered when the keyboard is hidden
Thickness GetInsets()
Gets the safe area insets for the device (top, bottom, left, right).
bool SupportsFingerprintAuthentication
If the device supports authenticating the user using fingerprints.
void HideKeyboard()
Force hide the keyboard
void ShareImage(byte[] PngFile, string Message, string Title, string FileName)
Shares an image in PNG format.
EventHandler< KeyboardSizeMessage >? KeyboardSizeChanged
Event that is triggered when the keyboard size changes
Task CloseApplication()
Closes the application
BiometricMethod
Enum representing the device biometric method for authentication.