title: Cordova plugin accessing activity custom method
body: <p>I am currently making a Cordova plugin that will have call a method which starts a tween animation on the main activity.        </p>
  
  <p><code>cordova.getActivity().customMethod();</code></p>
  
  <p>Does not work because the plugin does not know whether the method is implemented or not. How do I do this?</p>
  
  <p>Thanks!</p>
  
  <p>Edit: To clarify my question a little bit better: <strong>How do I make a Cordova Plugin start an Android view-animation in the current activity?</strong></p>