Reader small image

You're reading from  .NET MAUI Cross-Platform Application Development - Second Edition

Product typeBook
Published inMar 2024
Reading LevelBeginner
PublisherPackt
ISBN-139781835080597
Edition2nd Edition
Languages
Right arrow
Author (1)
Roger Ye
Roger Ye
author image
Roger Ye

Roger Ye is an embedded system programmer who has great interest in virtualization, Android, and cross-platform technologies. His professional experience includes working with major companies like Motorola, Emerson, Intel, and EPAM, where he held the position of Engineering Manager. At Motorola and Emerson, he worked on embedded system projects for mobile devices and telecommunication infrastructures. He is now an engineering manager at EPAM, working with a team to deliver digital solutions for diverse clients.
Read more about Roger Ye

Right arrow

Implementing platform-specific code

In the realm of .NET MAUI application development, there are numerous instances where we might need to write platform-specific code. In this section, we will examine the guidelines for implementing such code. Following that, we will explore the two most common scenarios that necessitate writing platform-specific code in this chapter. The first scenario involves accessing platform features that are not readily available in .NET MAUI APIs. The second scenario may require creating custom controls or customizing existing controls.

Before delving into how to access platform APIs, it’s important to distinguish between the terms .NET MAUI API and platform API. In Chapter 1, Getting Started with .NET MAUI, we have the following architecture diagram of a .NET MAUI application (Figure 7.1).

A group of colorful rectangular boxes with text  Description automatically generated

Figure 7.1: .NET MAUI architecture

Since most of the components in the architectural diagram are open-source, I’ve numbered the components...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
.NET MAUI Cross-Platform Application Development - Second Edition
Published in: Mar 2024Publisher: PacktISBN-13: 9781835080597

Author (1)

author image
Roger Ye

Roger Ye is an embedded system programmer who has great interest in virtualization, Android, and cross-platform technologies. His professional experience includes working with major companies like Motorola, Emerson, Intel, and EPAM, where he held the position of Engineering Manager. At Motorola and Emerson, he worked on embedded system projects for mobile devices and telecommunication infrastructures. He is now an engineering manager at EPAM, working with a team to deliver digital solutions for diverse clients.
Read more about Roger Ye