Invoke Platform Code

circle-exclamation

In situations where Wisej.NET Hybrid doesn't provide any APIs for accessing specific platform APIs, you can write your own code to access the required platform APIs. This requires knowledge of Apple's iOS and MacCatalyst APIsarrow-up-right, Google's Android APIsarrow-up-right, and Microsoft's Windows App SDK APIsarrow-up-right.

Platform code can be invoked from cross-platform code by using conditional compilation, or by using partial classes and partial methods.

Example Project

Examples

Registering for remote notifications on iOS:

Determining what type of biometrics are supported on the device:

circle-exclamation

Further Reading

Invoking Platform Code in .NET MAUI

Last updated