![]() In my Xamarin.Forms applications I use DependencyService and platform specific code to improve on the information provided by Xamarin Essentials, here I'll use partial classes to achieve the same results in. Xamarin Essentials and MAUI Essentials include a DeviceInfo class which provides information about the device the application is running on but on Android it doesn't include the SDK version and on iOS it reports the model using Apple hardware identifiers, which are not very user friendly. NET MAUI articles is available on GitHub: irongut/MauiBeach The Problem NET MAUI to retrieve device information.Īs always, the code for my. ![]() ![]() In this article I demonstrate how to use partial classes in. NET MAUI we can use a similar dependency injection technique or take advantage of MAUI's multi-targeting and partial classes to write platform specific code. In Xamarin.Forms we use DependencyService, in. When writing a cross platform app it is common to need some platform specific code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |