For example, I have an object of the comboboxwrapper class. How do I get the native combobox instance ?
I get the wrapper class as a result of running this code :
GetView returns the mView field (a ComboBox, big surprise) declared in the Control class.
If I define the return type of the GetView method to Combobox, "obj" is a comboboxwrapper.
If I define the return type of the GetView method to Object, "obj" is a combobox. But I wish to have ComboBox as return type.
I get the wrapper class as a result of running this code :
B4X:
Dim obj As Object = Control.As(JavaObject).RunMethod("_getview", Array(Null))
If I define the return type of the GetView method to Combobox, "obj" is a comboboxwrapper.
If I define the return type of the GetView method to Object, "obj" is a combobox. But I wish to have ComboBox as return type.
Last edited: