Invoke Platform Code

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 APIs, Google's Android APIs, and Microsoft's Windows App SDK APIs.

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:

Further Reading

Invoking Platform Code in .NET MAUI

Last updated