Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
public final class MainActivity extends AppCompatActivity {
   private BuzzAdInAppPop buzzAdInAppPop;

   protected void onCreate(@Nullable Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.buzzAdInAppPop = new BuzzAdInAppPop.Builder(this).build();
   }

   protected void onResume() {
      super.onResume();
      buzzAdPopbuzzAdInAppPop.show((Activity) this, (ViewGroup) null);
   }

   protected void onPause() {
      super.onPause();
      buzzAdPopbuzzAdInAppPop.hide();
   }
}