Skip to content

Commit

Permalink
pause/resume
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Malandruccolo committed Jul 9, 2024
1 parent f5125ba commit f301068
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/admob/interstitial_example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ class InterstitialExampleState extends State<InterstitialExample> {
))
.toList(),
onSelected: (item) {
_pauseGame();
switch (item.value) {
case 0:
MobileAds.instance.openAdInspector((error) {
// Error will be non-null if ad inspector closed due to an error.
_resumeGame();
});
case 1:
_pauseGame();
_consentManager.showPrivacyOptionsForm((formError) {
if (formError != null) {
debugPrint("${formError.errorCode}: ${formError.message}");
Expand Down

0 comments on commit f301068

Please sign in to comment.