protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); // Set our view from the "main" layout resource SetContentView(Resource.Layout.Main); identityText = FindViewById <EditText>(Resource.Id.identityText); enrollButton = FindViewById <Button>(Resource.Id.enrollButton); enrollButton.Click += delegate { if (identityText.Text.Length == 0) { ShowZoomAlert("Empty Username", "Please enter a username."); return; } latestZoomHybridRequestType = ZoomHybridRequestType.Enroll; StartVerification(); }; authButton = FindViewById <Button>(Resource.Id.authButton); authButton.Click += delegate { if (identityText.Text.Length == 0) { ShowZoomAlert("Empty Username", "Please enter a username."); return; } latestZoomHybridRequestType = ZoomHybridRequestType.Authenticate; StartVerification(); }; checkEnrollmentButton = FindViewById <Button>(Resource.Id.checkEnrollmentButton); checkEnrollmentButton.Click += delegate { if (identityText.Text.Length == 0) { ShowZoomAlert("Empty Username", "Please enter a username."); return; } IsUserEnrolled(identityText.Text.Replace(" ", "")); }; deleteEnrollmentButton = FindViewById <Button>(Resource.Id.deleteEnrollmentButton); deleteEnrollmentButton.Click += delegate { if (identityText.Text.Length == 0) { ShowZoomAlert("Empty Username", "Please enter a username."); return; } DeleteUser(identityText.Text.Replace(" ", "")); }; String versionStr = "Zoom SDK v" + ZoomSDK.Version(); FindViewById <TextView>(Resource.Id.versionText).Text = versionStr; }
public void InitZoomLib(string appKey, string appSecret) { zoomSDK = ZoomSDK.Instance; var zoomInitParams = new ZoomSDKInitParams { AppKey = appKey, AppSecret = appSecret }; zoomSDK.Initialize(Android.App.Application.Context, this, zoomInitParams); }
public override void OnCompletion(bool success) { activity.RunOnUiThread(delegate { activity.enrollButton.Enabled = success; activity.authButton.Enabled = success; activity.checkEnrollmentButton.Enabled = success; activity.deleteEnrollmentButton.Enabled = success; if (!success) { String statusStr = ZoomSDK.GetStatus(activity).ToString(); String alertMessage = "Initialization failed. " + statusStr; activity.ShowZoomAlert("Warning", alertMessage); } }); }
public void InitZoomLib(string appKey, string appSecret) { zoomSDK = ZoomSDK.Instance; var zoomInitParams = new ZoomSDKInitParams { AppKey = appKey, AppSecret = appSecret }; zoomSDK.Initialize(Android.App.Application.Context, this, zoomInitParams); //if (IsInitialized()) //{ // zoomSDK.LoginWithZoom("*****@*****.**", "Hamtube1996"); // var init = zoomSDK.IsInitialized; //} }
public void InitZoomLib(string appKey, string appSecret) { try { zoomSDK = ZoomSDK.Instance; var zoomInitParams = new ZoomSDKInitParams { AppKey = appKey, AppSecret = appSecret }; zoomSDK.Initialize(Android.App.Application.Context, this, zoomInitParams); } catch (System.Exception ex) { throw ex; } }
protected override void OnStart() { base.OnStart(); // Set any customizations to ZoOm's default UI and behavior var customization = new ZoomCustomization(); customization.ShowFailureScreen = false; customization.ShowSuccessScreen = false; ZoomSDK.SetCustomization(customization); // Initialize the SDK before trying to use it ZoomSDK.Initialize(this, appToken, new ZoomInitializeCallback(this)); // Set your biometric encryption key if provided if (hybridEncryptionKey.Length > 0) { ZoomSDK.SetHybridEncryptionKey(hybridEncryptionKey); } }