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 || hideUIWhenPlayable > alwaysShowUI)
return Future.error(ArgumentError.notNull("mode"));
else
return FijkPlugin._channel
.invokeMethod("volUiMode", <String, dynamic>{'mode': mode});
}