skip to Main Content

Is the function onAdDismissedFullScreenContent() working when the user closes the add or it works when the ad did not appear? I do not understand very well the meaning of dismissed in this context. The second question is, is it mandatory to put inside this onAdDismissedFullScreenContent function the following code? What is the intention of the following code? Could I put nothing on this function? Thanks in advance

onAdDismissedFullScreenContent(){
Intent intent = new Intent(getApplicationContext(), Activity.class);
        startActivity(intent);
}

2

Answers


  1. For the first question

    Yes, this method onAdDismissedFullScreenContent() is user closes the full screen ad content.

    And if the ad failed to show full screen content the method

    onAdFailedToShowFullScreenContent(AdError adError) will be called.

    You can check the public method summery for FullScreenContentCallback here

    And for your second question,

    No, it’s not mandatory to set anything inside these functions.

    and the code

    Intent intent = new Intent(getApplicationContext(), ActivityWorkout.class);
    startActivity(intent);
    

    will open an activity called ActivityWorkout when the ad is closed.

    I hope I answered your questions, Happy coding.

    Login or Signup to reply.
  2. Intent intent = new Intent(currentActivity, home.class);
    currentActivity.startActivity(intent);

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search