Capacitor built in plug ins inside my own custom capacitor plug in

Can we use capacitor built in plug ins inside my own custom capacitor plug in?

You can use the native implementation by importing the class (if it has one) and it would work fine. Make sure that

  • You are importing the implementation class and not the plugin class
  • The plugin you are importing has a native implementation (the motion plugin for example doesn’t)