savecontactsmaui

MAUI Create a new Contact


i have written a MAUI .NET 6 application and i want to create a new entry in my contactlist.

Earlier u can use the methode Microsoft.Maui.Essentials.Contacts.AddContactAsync. But now the namespace Microsoft.Maui.Essentials is replaced by some others (How to use Microsoft.Maui.Essentials?) and i can not find any method to save a new contact.

Has anyone an idea in which namespace this function is placed today?

Thanks for ur help!


Solution

  • Please be noted that the new namespaces are documented in the Migrating to RC1 page.

    And the new namespace that is related with Conatct is Microsoft.Maui.ApplicationModel.Communication. You can go through:https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/contacts?view=net-maui-6.0&tabs=android for more details.