Search code examples
androidxamarinxamarin.iosxamarin.androidmiddleware

Calling a middleware function in Xamarin Android Binding


I'm trying to call one function to set the value of a private field in a class inside my jar file. The jar file is used to create Xamarin Android binding.

My question is: is there a way to call a function or set the value of a private field behind the scenes in a Xamarin Android binding without user interference?


Solution

  • I ended up making some bash magic to literally modify Java code before compilation and then revert it back. Not the best way but it works :)

    Closing this.