Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Check if Ambient light sensor is presented #2

Closed
kvs-coder opened this issue Jun 4, 2023 · 2 comments
Closed

Feature request: Check if Ambient light sensor is presented #2

kvs-coder opened this issue Jun 4, 2023 · 2 comments

Comments

@kvs-coder
Copy link

Thank you for your library!

I was wondering, if it is possible to have a method which will returns the bool value stating if the sensor is available on the device or no?

For instance some Android devices (like tablets) might not have an integrated ambient light sensor. In this case business logic of the app should behave differently

@kvs-coder
Copy link
Author

@Cshayan Please review this small one PR

#3

@Cshayan
Copy link
Owner

Cshayan commented Jun 5, 2023

@kvs-coder thanks for the PR. The PR is merged. Closing this.

Thanks!

@Cshayan Cshayan closed this as completed Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants