setImmersiveMode method

Future<void> setImmersiveMode(
  1. bool immersiveModeEnabled
)

Sets whether this ad will be displayed in immersive mode (Android only).

This is a no-op on iOS. See https://developer.android.com/training/system-ui/immersive#immersive for more information on immersive mode.

Implementation

Future<void> setImmersiveMode(bool immersiveModeEnabled) async {
  if (defaultTargetPlatform == TargetPlatform.iOS) {
    return Future.value();
  } else {
    return instanceManager.setImmersiveMode(this, immersiveModeEnabled);
  }
}