setKeepScreenOn abstract method
Keeps the screen awake while the camera UI is up — Android sets
FLAG_KEEP_SCREEN_ON on the activity window, iOS sets
isIdleTimerDisabled. enabled: 1 = on, 0 = off. (An FFI spec method,
so no extra plugin / method channel is needed.)
Implementation
void setKeepScreenOn(int enabled);