Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
will you add onPause and onResume callback to the plugin class — Gideros Forum

will you add onPause and onResume callback to the plugin class

alexzhengalexzheng Guru
edited November 2013 in Suggestions & requests
since in some situation,something need to be done in onPause and onResume,such as the Mobile Ads APIs in Google Play services https://developers.google.com/mobile-ads-sdk/docs/admob/play-migration.
So it will be better to call onPause and onResume in the plugin class as onCreate and onDestroy.

Comments

  • ar2rsawseenar2rsawseen Maintainer
    edited November 2013 Accepted Answer
    Hello @alexzheng
    currently Gideros passes to plugins classes these methods:
    public static void onCreate(Activity activity);
    public static void onDestroy();
    public static void onStart();
    public static void onRestart();
    public static void onStop();
    public static void onPause();
    public static void onResume();
    public static void onActivityResult(int requestCode, int resultCode, Intent data);
    It is great to see more folks joining the plugin development :)
  • @ar2rsawseen
    oh,yes, thanks, these methods have already be supported.
    I also guess these should be supported. However, at first I declared as public static void onPause(Activity activity). :))

    Likes: ar2rsawseen

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.