setUIMode static method

Future<void> setUIMode(
  1. int mode
)

update the ui mode when system volume changing. mode can be one of {hideUIWhenPlayable, hideUIWhenPlaying, neverShowUI, alwaysShowUI}

Implementation

static Future<void> setUIMode(int mode) {
  if (mode < hideUIWhenPlayable || hideUIWhenPlayable > alwaysShowUI) {
    return Future.error(ArgumentError.notNull("mode"));
  } else {
    return FplayerPlatform.instance.volUiMode(mode);
  }
}