Created
May 1, 2020 12:59
-
-
Save luizmarcus/66c254f25cfb2668a9bb768abce678e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void handleEvent( | |
AdmobAdEvent event, Map<String, dynamic> args, String adType) { | |
switch (event) { | |
case AdmobAdEvent.loaded: | |
print('Novo $adType Ad carregado!'); | |
break; | |
case AdmobAdEvent.opened: | |
print('Admob $adType Ad aberto!'); | |
break; | |
case AdmobAdEvent.closed: | |
print('Admob $adType Ad fechado!'); | |
break; | |
case AdmobAdEvent.failedToLoad: | |
print('Admob $adType falhou ao carregar. :('); | |
break; | |
default: | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment