How To Customize The Finger Print Dialog In Maui

Mahdi Elahi 26 Reputation points
2024-05-12T12:46:04.9366667+00:00

Hi, i want customize the finger print dialog in maui .net 8 for example : set margin or change text color or ...

this my codes

private async Task AuthByFingerPrint()

{

// In constructor:

var request = new AuthenticationRequestConfiguration("Your Title", "Your Subtitle")

{

};

var result = await fingerprint.AuthenticateAsync(request);

if (result.Authenticated)

{

await Navigation.PushAsync(new MainPage());

;

}

else

{

}

}

this my app view in image
Capture

how to add style to finger print dialog ?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,459 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,978 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,386 Reputation points Microsoft Vendor
    2024-05-13T03:20:20.9833333+00:00

    Hello,

    No, you cannot customize the Finger Print Dialog.

    AuthenticationRequestConfiguration implement it by BiometricPrompt.Builder in android platform.

    Open the above link, you can see

    A builder that collects arguments to be shown on the system-provided biometric dialog.

    The UI is standardized by the Android system to maintain consistency across all apps. This is the key aspect of this API, ensuring users are familiar with the prompt and trust its safety.

    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.