// This will be called to enter pin public void EnterPin(string pinText) { uint requestId = 0; IMbnPinManager pinManager = m_MbnInterface as IMbnPinManager; IMbnPin pin = pinManager.GetPin(MBN_PIN_TYPE.MBN_PIN_TYPE_PIN1); pin.Enter(pinText, out requestId); // Display the message m_jsCallback("Waiting for EnterPin to complete for requestId: " + requestId.ToString()); }
public void EnterPinButton_Click(string pinText) { try { uint requestId = 0; // Get pin manager object IMbnPinManager pinManager = m_MbnInterface as IMbnPinManager; // Get pin object for pin type as Pin1 IMbnPin pin = pinManager.GetPin(MBN_PIN_TYPE.MBN_PIN_TYPE_PIN1); // Enter required pin to unlock device pin.Enter(pinText, out requestId); rootPage.NotifyUser("Waiting for EnterPin to complete for requestId: " + requestId.ToString() + "for pin: " + pinText, NotifyType.StatusMessage); } catch (Exception e) { rootPage.NotifyUser(ParseExceptionCode(e), NotifyType.ErrorMessage); } }