setAppMuted static method
To inform the SDK that the app volume has been muted, use the setAppMuted()
method:
Unmuting the app volume reverts it to the previously set level. By default, the app volume for the Google Mobile Ads SDK is set to 1 (the current device volume).
Implementation
static Future<void> setAppMuted([bool muted = true]) {
return _pluginChannel.invokeMethod('setAppMuted', {
'muted': muted,
});
}