mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
cleanup flash implementation
- fix issues with brightness control - add separate classes for Android 5 and Android 6+ for simplicity - properly cleanup camera in onDestory and also when stroboscope/flashlight mode are disabled
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
package com.simplemobiletools.flashlight.helpers
|
||||
|
||||
interface CameraFlash {
|
||||
fun initialize()
|
||||
fun toggleFlashlight(enable: Boolean)
|
||||
fun changeTorchBrightness(level: Int) {}
|
||||
fun getMaximumBrightnessLevel(): Int = DEFAULT_BRIGHTNESS_LEVEL
|
||||
fun supportsBrightnessControl(): Boolean = false
|
||||
fun getCurrentBrightnessLevel(): Int = DEFAULT_BRIGHTNESS_LEVEL
|
||||
fun unregisterListeners(){}
|
||||
fun release(){}
|
||||
}
|
Reference in New Issue
Block a user