简体   繁体   中英

Monodroid - Change Constructor Visibility using Metadata

I'm currently porting the Facebook SDK for Android to a C# library. I am trying to change the WebDialog.FeedDialogBuilder constructor visibility metadata using metadata bindings described here:

http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)

Does anybody know how to change the constructor visibility from protected to public?

protected FeedDialogBuilder(IntPtr javaReference, JniHandleOwnership transfer);

Any help would be appreciated. Thanks.

仅作记录-更改可见性,您可以添加到Transforms / Metadata.xml中,例如:

<attr path="/api/package[@name='Name_of_the_package']/class[@name='FeedDialogBuilder']/method[@name='FeedDialogBuilder']" name="visibility">public</attr>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM