-
Notifications
You must be signed in to change notification settings - Fork 13
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
Generic Proximity sensor or UserProximity sensor #4
Comments
We should be targeting proximity sensors in general, and inferring whether a device is close to the user's ear or not should be one of the one use cases. near can be inferred as In platforms, which can only report near/far, If to represent Since the spec says that we should not use it as a reliable source of accurate distance between sensor and an object, I think using wdyt ? |
I think a negative distance is confusing; I personally feel that using near/far when that's the best we know (while leaving distance to +Infinity) is less confusing. Note that the distinction between UserProximity and Proximity that @tobie was suggesting is the one the original Proximity spec used. |
Is leaking platform issue something we specifically want to avoid here? |
As a note to implementors, in cases where wdyt ? |
This follows up on my initial comment about whether the sensor should include distances or just a near/far data point.
Are we targeting proximity sensors in general, here, or are we really looking at proximity sensors used to infer whether a device is close to the user's ear or not?
It is my understanding that different sensor types can be used to achieve the latter, while the number of sensors types able to achieve the former are more limited.
Note that we could very well have both a
UserProximitySensor
and aProximitySensor
talking to the same underlying hardware sensor. We could even imagine a case where theUserProximitySensor
wouldn't require user permission (and would have a matching CSS mediaquery, much like for light-level) and the latter would.Whatever you decide to go with, I think it's important that you document it and explain the tradeoffs in the spec.
The text was updated successfully, but these errors were encountered: