当前位置: 动力学知识库 > 问答 > 编程问答 >

xamarin - Can I pass an Android.OS.Handler from c# to java?

问题描述:

I need to instantiate a java class in a .jar from c#. The java class takes an Android.OS.Handler in the constructor. I added a java bindings project which created a wrapper for the java class. In c#, I create a Handler(Action) and pass it to the wrapper. Everything seems to "work", but the Action I passed into the Handler never gets called.

Is this passing of a Handler from c# to java supposed to work or am I trying something that won't work through JNI?

分享给朋友:
您可能感兴趣的文章:
随机阅读: