setAppMuted static method

Future<void> setAppMuted([
  1. bool muted = true
])

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,
  });
}