Calling javascript in java ( phaser in admob )

Hi, how can I use phaser to call function in java, for example:

   public void onRewardedAdOpened() { 
                   // Ad opened.           
     }

I would like to make a buttion which after clicking displays the rewarded add. How can I implement that?