-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from Poing-Studios/ios-background-thread-call…
…-function feat: added set_ios_app_pause_on_background #99
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extends VBoxContainer | ||
|
||
@onready var set_ios_app_pause_on_background_button := $SetiOSAppPauseOnBackgroundButton | ||
@onready var set_mute_music := $SetMuteMusic | ||
@onready var music := $Music | ||
|
||
func _on_set_ios_app_pause_on_background_button_pressed() -> void: | ||
var enabled : bool = set_ios_app_pause_on_background_button.button_pressed | ||
MobileAds.set_ios_app_pause_on_background(enabled) | ||
|
||
func _on_mute_music_pressed() -> void: | ||
music.playing = not set_mute_music.button_pressed | ||
|
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