Forum Xamarin.Android

Jar Binding: How can I expose method from extend class to the extended class?

I am trying to bind Jar from ooVoo SDK (https://developers.oovoo.com).

There is class called ooVooClient that extends ooVooClientImpl. I need to access setContext from ooVooClient (OoVooClient.setContext(Context)). setContext is available in ooVooClientImpl but is not exposed in ooVooClient. How can I make it available in ooVooClient?

ooVooClient:

<class abstract="false" deprecated="not deprecated" extends="com.oovoo.sdk.api.ooVooClientImpl" extends-generic-aware="com.oovoo.sdk.api.ooVooClientImpl" final="false" name="ooVooClient" static="false" visibility="public">`

ooVooClientImpl:

<class abstract="true" deprecated="not deprecated" extends="com.oovoo.core.ClientCore.JNIObject" extends-generic-aware="com.oovoo.core.ClientCore.JNIObject" final="false" name="ooVooClientImpl" static="false" visibility="">
    <method abstract="false" deprecated="not deprecated" final="false" name="setContext" native="false" return="void" static="true" synchronized="false" visibility="public">
     <parameter name="p0" type="android.content.Context"></parameter>
    </method>
</class>

This is my metadata.xml so far

<attr path="/api/package[@name='com.oovoo.sdk.api']/class[@name='ooVooClientImpl']" name="visibility">public</attr>
<attr path="/api/package[@name='com.oovoo.sdk.api']/class[@name='ooVooClient']/method[@name='setContext']" name="name">setContext</attr>
<attr path="/api/package[@name='com.oovoo.sdk.api']/class[@name='ooVooClient']/method[@name='setContext']/parameter[@name='p0']" name="name">context</attr>
<attr path="/api/package[@name='com.oovoo.sdk.api']/class[@name='ooVooClient']/method[@name='setContext']" name="manageType">Android.Content.Context</attr>
Tagged:
Sign In or Register to comment.