setPlayerMode method
Switch the player between normal and short-drama mode. In short-drama mode, mid-screen pan gestures are fully disabled by the native layer and no event is dispatched — the host app is expected to handle vertical/horizontal swipes (episode switching, etc.) itself.
Android: 进入 short-drama 模式时插件会隐藏 navigation bar 进入沉浸态。 退出 short-drama(PlayerMode.normal)时插件 不会 自动还原系统栏, 宿主 app 需要在退出短剧页面后显式调用 restoreSystemUI 触发还原。
Implementation
Future<void> setPlayerMode(PlayerMode mode) =>
_invoke('setPlayerMode', {'mode': mode.wireValue});