Re: Get MUI version
Posted: Sun May 23, 2021 7:00 pm
To go back to the original problem: How about a special method to get the MUI version? Something like moai.Get("app", "MuiVersion") ?
But thinking about it some more: What about a completely different but maybe even better approach:
The MUI version itself isn't really the information I want. What I really want to know is if some feature is supported or not. Maybe a feature is not supported because of the installed MUI being too old, but it could also be because of the platform the app is currently running. So it would be great if the developer could query if a feature is supported or not, maybe by calling something like:
moai.DoMethod("app", "isSupported", "button", "icon")
or
moai.DoMethod("app", "isSupported", "listview", "alternate")
or
moai.DoMethod("app", "isSupported", "listviewcolumn", "editable")
or maybe even outside of RapaGUI like
IsSupported("ChangeApplicationIcon")
What do you think?
But thinking about it some more: What about a completely different but maybe even better approach:
The MUI version itself isn't really the information I want. What I really want to know is if some feature is supported or not. Maybe a feature is not supported because of the installed MUI being too old, but it could also be because of the platform the app is currently running. So it would be great if the developer could query if a feature is supported or not, maybe by calling something like:
moai.DoMethod("app", "isSupported", "button", "icon")
or
moai.DoMethod("app", "isSupported", "listview", "alternate")
or
moai.DoMethod("app", "isSupported", "listviewcolumn", "editable")
or maybe even outside of RapaGUI like
IsSupported("ChangeApplicationIcon")
What do you think?