Use a plugin from another plugin in Craft 3 I would like to use another plugin from my own plugin. What is the best way to do this. Right now I am doing something like this, but there should be a better way than to explicitly call the service:

Craft::$app-&gt;getModule('mobile-detect')-&gt;mobileDetectService


What I am really looking for is the service container where I do not have to know anything just the plugin what should have been loaded...?
You can call the main plugin class directly

MobileDetect::$plugin-&gt;mobileDetectService


I don't know this plugin, maybe the class is wrong but that's the syntax you can use