In my managed package I have a Setup page that should only display setup steps relevant for the currently installed version of my package.
I know in InstallHandler implementations there are way to ask for the Version but how would I do that from a regular Apex class?
Best Answer
You can use System.requestVersion, which returns the version of your package. See Version for more details, but I'll also include the snippet from there here: