View Tools
Divided into two extensions: ViewToolsGet and ViewToolsSet
Many useful methods to get and set properties of visible components.
Blocks:
Get Methods (127)
Set Methods (108)
The image of the blocks will be added soon.
Documentation
Scroll down to Get or Set Methods.
Note:
Some methods are not present in the extension.
Because some methods and parameter values are not supported in AppInventor / Kodular.
Download
com.sonu.ViewToolsGet.aix (17.2 KB)
com.sonu.ViewToolsSet.aix (26.2 KB)
16 Likes
themaayur
(Mayur Berad)
October 11, 2020, 3:35pm
#3
Nice Extension, so many blocks. I understand use of some of them only
4 Likes
BTW, you should follow the naming convention:
Please follow the naming conventions, which is UpperCamelCase for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, no underscores .
Example
[naming]
Taifun
get
should be Get
in all of the 127 method
1 Like
Yes, I used lowerCamelCase because the android documentation uses it.
So the user will not get confused while referring to the documentation.
It also looks good, so lower case words show get , set the type of block.
I will change them in the next update if it’s a mandatory rule.
2 Likes
sonumohammad333:
I will change them
Thanks
Yes it is, if you are going to publish this extension, also see here:
actually this is not about what you like personally…
all components and extensions follow the naming conventions… and these naming conventions have been setup by the MIT App Inventor team, see also the App Inventor Extensions document
see here why naming conventions make sense
Why are naming conventions important programming?
Naming conventions help your code stay fluent within the context of your program . This is important because you want to have consistency throughout your entire p…
4 Likes
Taifun
October 12, 2020, 1:40am
#9
another possibility would be to just remove the “get”… these are Getter methods anyway… so for example you easily could replae getDrawingCache just by DrawingCache … simple is best… thank you…
Taifun
3 Likes
Added 108 Set Blocks
As a new extension, ViewToolsSet .
2 Likes