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 5ed9860 commit fb3df29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/admob/rewarded_example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,14 @@ class RewardedExampleState extends State<RewardedExample> {
))
.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 fb3df29

Please sign in to comment.