rbirago Active Member Licensed User Longtime User Dec 12, 2016 #1 For what I understand with JavaObject I can access to properties and methods of an external java library or access a non exposed method/property of an object used in the project. Ok, but I have a different question: Can I access a method of a wrapped java library that is not exposed by the wrap-library? Perhaps it's better to post an example: RSRecordVideo is a library that wraps most of the properties/methods of the standard MediaRecorder Android library...but it doesn't wrap the method setVideoEncodingBitRate that defines the quality of the video I have to record. So, is there a way to access MediaRecorder object (not a new instance) to call directly a not-wrapped method?...or have I to build a new wrap library? Thanks in advance Roberto
For what I understand with JavaObject I can access to properties and methods of an external java library or access a non exposed method/property of an object used in the project. Ok, but I have a different question: Can I access a method of a wrapped java library that is not exposed by the wrap-library? Perhaps it's better to post an example: RSRecordVideo is a library that wraps most of the properties/methods of the standard MediaRecorder Android library...but it doesn't wrap the method setVideoEncodingBitRate that defines the quality of the video I have to record. So, is there a way to access MediaRecorder object (not a new instance) to call directly a not-wrapped method?...or have I to build a new wrap library? Thanks in advance Roberto
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2016 #2 You need to know how the wrapper stores the wrapped instance. If it is stored in a class field then you need to know the field name. Upvote 0
You need to know how the wrapper stores the wrapped instance. If it is stored in a class field then you need to know the field name.
rbirago Active Member Licensed User Longtime User Dec 13, 2016 #3 In the example I posted (RSRecordVideo) I don't know how it stores the wrapped MediaRecorder library. Does it mean that my only chance is to question the author? or is there a way to discover these infos? Upvote 0
In the example I posted (RSRecordVideo) I don't know how it stores the wrapped MediaRecorder library. Does it mean that my only chance is to question the author? or is there a way to discover these infos?