Skip to Content
.NET MAUI Cookbook
book

.NET MAUI Cookbook

by Alexander Russkov
December 2024
Intermediate to advanced content levelIntermediate to advanced
384 pages
8h 17m
English
Packt Publishing
Content preview from .NET MAUI Cookbook

7

Understanding Platform-Specific APIs and Custom Handlers

Even though .NET MAUI is designed to allow a single code base for all supported platforms, there are still compelling reasons to write platform-specific code:

  • Platform-specific settings: Each platform may have its own unique settings. For instance, iOS uses a different address to access the host machine compared to Android.
  • User interface differences: In the first chapter (Crafting the Page Layout), we built UIs tailored to each platform using primarily XAML techniques. However, for more complex scenarios, you might need to implement custom logic in C# to meet specific platform requirements.
  • Platform view customization: .NET MAUI wraps native views for each platform, providing customization ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET MAUI in Action

.NET MAUI in Action

Matthew Goldman
.NET MAUI Projects - Third Edition

.NET MAUI Projects - Third Edition

Michael Cummings, Daniel Hindrikes, Johan Karlsson

Publisher Resources

ISBN: 9781835461129Supplemental Content