How to call the MainPage.xaml.cs to MainActivity.cs method in xamarin forms

Asked 2 years ago, Updated 2 years ago, 116 views

As per the title, please let me know if you know how to call the MainPage.xaml.cs method from Android on xamarin forms.
What I want to do is to process things that take a long time on Android, and if there is a CallBack, I would like to inform MainPage.xaml.cs.
I think MainPage.xaml.cs side of Android can be called by DependencyService from MainActivity.cs, but it is the opposite direction.
Is it possible to register a delivery and call it?
Or is there any interface available?

xamarin

2022-09-30 17:38

1 Answers

Deligate registration worked.
This will be resolved.


2022-09-30 17:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.