Invoke Platform Code
Example Project
Examples
Determining what type of biometrics are supported on the device:
Further Reading
Last updated
Last updated
// register for remote notifications in a Wisej.NET button click.
private void button1_Click(object sender, System.EventArgs e)
{
#if IOS
// execute code on iOS UI Thread.
CoreFoundation.DispatchQueue.MainQueue.DispatchAsync(() =>
{
// register for remote notifications.
UIKit.UIApplication.SharedApplication.RegisterForRemoteNotifications();
});
#endif
}private void button1_Click(object sender, System.EventArgs e)
{
#if IOS
var context = new LocalAuthentication.LAContext();
Foundation.NSError error = null;
context.CanEvaluatePolicy(LocalAuthentication.LAPolicy.DeviceOwnerAuthenticationWithBiometrics, out error);
if (error?.LocalizedDescription == null)
AlertBox.Show(context.BiometryType.ToString());
else
AlertBox.Show(error?.LocalizedDescription);
#endif
}