Efficient Way to Create "Pin-View"

David Orakpo 41 Reputation points
2022-01-12T20:22:35.377+00:00

Hello everyone,

I am attempting to find a control/library for a pin view. I am building a page that requires the user to Create a 4 digit pin and have it stored, the UI also showing the digits being pressed but hidden in dots. Does anyone here know how this is implemented?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 68,901 Reputation points Microsoft Vendor
    2022-01-14T01:59:11.423+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Xamarin Forms doesn't provide an explicit PinView control. You can get the basic behaviour ("showing the digits being pressed but hidden in dots") with stock Entry control and the IsPassword property. If you want something fancier, there are several 3rd party and open source PinView controls available. If you search for "Xamarin PinView" you'll find several options you can look at to see if they fit your functional and licensing needs.

    Depending on your specific use case, you may be better off using the in-box biometric API. Xamarin exposes the underlying iOS and Android API local authentication API, but doesn't yet provide a cross platform wrapper. There is a work item to create one and there are several third party options.
    Storing a PIN locally is a separate task from the PinView entry form. Most commonly you would use your PinView to query the user's PIN and then pass that to whatever authentication system you're using rather than storing it.

    For general use secure local storage, see the SecureStorage API,

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful