This is something I have since I created libraries for B4A and I wondering if there was a way to hide default methods/properties within B4A.
e.g. I'm now creating a new lib for youtube. In Java I have:
@ActivityObject
@ShortName("ABYoutube")
@Version(1.04f)
@Author("Alain Bailleul")
@Events(values={"Initialized(Success as Boolean, Message as String)"})
@Permissions(values={"android.permission.INTERNET"})
@DependsOn(values={"youtubeandroidplayerapi"})
public class ABYoutube extends YouTubeBaseActivity implements OnInitializedListener {
...
The library works fine, except in B4A I see a lot of methods/properties that should not be visible to the developer like:
ACCESSIBILITY_SERVICE
ACCOUNT_SERVICE
ActionBar
ACTIVITY_SERVICE
addContentView
ALARM_SERVICE
APP_OPS_SERVICE
Application
ApplicationContext
ApplicationInfo
applyOvverrideConfiguarion
Assets
AUDIO_SERVICE
BaseContext
BIND_ABOVE_CLIENT
BIND_ADJUST_WITH_ACTIVIY
.... and hundreds more
I know you can use @Hide to hide methods you wrote yourself. But how do you hide these 'Default' methods/properties?
I added @ActivityObject to the title of this post as I'm under the impression I see more of those 'Defaults' in B4A when I have to use @ActivityObject.
Note: This library also needs #Extends: com.ab.abyoutube.ABYoutube in B4A