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}
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
Task< byte[]> CaptureScreen(int blurRadius)
Make a blurred screenshot TODO: Just make a screen shot. Use the portable CV library to blur it.
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
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.