setUIMode static method
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 || mode > alwaysShowUI) {
return Future.error(
ArgumentError.value(mode, "mode", "Must be between 0 and 3"),
);
} else {
return FplayerPlatform.instance.volUiMode(mode);
}
}