Integrating with native platforms
.NET MAUI provides cross-platform APIs for native device features. Examples include:
- Working with the system clipboard
- Picking files and media from the local filesystem
- Storing data securely in a local dictionary for key-value storage
- Getting information about the device like the operating system version
- Reading sensors like an accelerometer or compass
- Checking network connectivity
- Using native user interface interactions like menu systems and toast notifications
Let’s look at example code for some of these native platform integrations.
Working with the system clipboard
You often need to integrate your app with the clipboard on the local device. For example, a user might have a description of a category in another app like a word processor or notes app. While editing a category, they might want to copy and paste the description from that other app. The clipboard integration only...