Access platform features in Blazor Hybrid

We’re building hybrid apps with .NET, which means we have access to all of the .NET class libraries. In addition to these APIs, building Blazor Hybrid apps with .NET MAUI not only allows you to deploy to multiple platforms, it also allows access to each platform’s native APIs. This means that if you need to integrate platform capabilities of iOS, Android, macOS, or Windows, you can do it all in C#. You can access these APIs directly from your Blazor components or create shared .NET MAUI class libraries.

Platform integration

Each platform that .NET MAUI supports offers unique operating system and platform APIs that you can access from C#. .NET MAUI provides cross-platform APIs to access much of this platform functionality, which includes access to sensors, accessing information about the device on which an app is running, checking network connectivity, storing data securely, and initiating browser-based authentication flows.

.NET MAUI separates these cross-platform APIs into different areas of functionality:

  • Application Model: App functionality, including app actions, application information, opening the browser, opening URIs, opening maps, handling permissions, and version tracking
  • Communication: Access to contacts, email, networking, phone dialer, sms messaging, and web authentication
  • Device Features: Information and access to battery, display info, device info, sensors, flashlight, geocoding, geolocation, haptic feedback, and vibration
  • Media: Including media picker, screenshots, text to speech, and unit converters
  • Sharing: Including access to the clipboard and sharing files or text to other applications
  • Storage: APIs for picking files, file system helpers, preferences, and secure storage
kubernetes training courses malaysia

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *