teogor / ceres

🪐 Ceres is a comprehensive Android development framework designed to streamline your app development process. Powered by the latest technologies like Jetpack Compose, Hilt, Coroutines, and Flow, Ceres empowers developers to build modern and efficient Android applications.
https://source.teogor.dev/ceres
Apache License 2.0
65 stars 4 forks source link

[FR]: Implement "Keep Screen On" #143

Closed zeoowl-dev closed 1 year ago

zeoowl-dev commented 1 year ago

Is there an existing issue for this?

Describe the problem

Add a new feature to keep the screen on when specific conditions are met, enhancing the user experience during certain app activities.

Describe the solution

Create a composable function named KeepScreenOn that takes an optional predicate parameter, which is a lambda function returning a Boolean value. This predicate is used to determine whether the screen should be kept on or not.

Additional context

No response

Code of Conduct