LifeCycleListener /3.5.0

public interface LifecycleListener

This is a uniform interface to mediation SDKs that need to know when Activity lifecycle events occur.

Public Methods

public void /onBackPressed(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onBackPressed(this) when the Android onBackPressed() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onCreate(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onCreate(this) when the Android onCreate() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onDestroy(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onDestroy(this) when the Android onDestroy() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onPause(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onPause(this) when the Android onPause() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onRestart(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onRestart(this) when the Android onRestart() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onResume(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onResume(this) when the Android onResume() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onStart(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onStart(this) when the Android onStart() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

public void /onStop(Activity activity) /+3.5.0

  • Description: If required by a mediation SDK, call MoPub.onStop(this) when the Android onStop() is invoked.

  • Parameters:

    • activity: The current Activity, typically this.

Last updated May 04, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)