Cableguy Expert Licensed User Longtime User Jan 29, 2015 #1 Take as an example the Web view ... the Web view itself is initialized in the usual way... then with the help of Web view extras we can enhance the basic webview we just initialized... I want to do the same with a helper view ... my issue is... my "webview" is a wrapper created in the b4a ide using compile to lib... my wrapper initializes an object... and I need to access that object from a helper lib... is there anything specific that needs to be done for this to work?
Take as an example the Web view ... the Web view itself is initialized in the usual way... then with the help of Web view extras we can enhance the basic webview we just initialized... I want to do the same with a helper view ... my issue is... my "webview" is a wrapper created in the b4a ide using compile to lib... my wrapper initializes an object... and I need to access that object from a helper lib... is there anything specific that needs to be done for this to work?
thedesolatesoul Expert Licensed User Longtime User Jan 29, 2015 #2 Why dont you just expose the WebView from its wrapper? In your B4A Webview wrapper library class code: Code: Sub AsWebView as WebView Return InternalWebview End Sub Upvote 0
Why dont you just expose the WebView from its wrapper? In your B4A Webview wrapper library class code: Code: Sub AsWebView as WebView Return InternalWebview End Sub
Cableguy Expert Licensed User Longtime User Jan 29, 2015 #3 I used the Web view just as an example... I am targeting the IOIO lib in my real project... I have a main lib that initializes the IOIO lib and will then prepare the ground for the rest of my app... what I aim to accomplish is to be able of calling/targeting the same instance of the IOIO that was initialized with my main lib (not the IOIO lib itself) [EDIT] I didn't notice the snippet was to my wrapper... I will give it a try later on. Upvote 0
I used the Web view just as an example... I am targeting the IOIO lib in my real project... I have a main lib that initializes the IOIO lib and will then prepare the ground for the rest of my app... what I aim to accomplish is to be able of calling/targeting the same instance of the IOIO that was initialized with my main lib (not the IOIO lib itself) [EDIT] I didn't notice the snippet was to my wrapper... I will give it a try later on.
thedesolatesoul Expert Licensed User Longtime User Jan 29, 2015 #4 Well the concept is the same. Your wrapper needs to expose/return the objects that you want to use elsewhere. Upvote 0
Well the concept is the same. Your wrapper needs to expose/return the objects that you want to use elsewhere.