- From: Florian Scholz via GitHub <sysbot+gh@w3.org>
- Date: Mon, 15 Apr 2024 09:00:12 +0000
- To: public-device-apis-log@w3.org
> @Elchi3 I was wondering if you have any input on what supportedSources should expose. Right now it exposes the sources supported by the user agent (browser) but not necessarily supported on a platform (say Android) or by the hardware. Good to know, I need to clarify this in the docs. So users will only find out if it is really supported in the current environment when calling `observe()`? In that case it seems `supportedSources` is merely a hint then? https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/supportedEntryTypes_static is the same thing for PerformanceObserver but I guess given the Perf APIs aren't depending on specific hardware, it is fine as a static property there. > Should we change that and make it an async getter, or add a similar method with that behavior in addition to the attribute? Not sure if there is a standard way for it on the web platform but a method is used elsewhere (especially when it has to do with hardware support, see WebXR and WebGL). https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports_static https://developer.mozilla.org/en-US/docs/Web/API/XRSystem/isSessionSupported https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints -- GitHub Notification of comment by Elchi3 Please view or discuss this issue at https://github.com/w3c/compute-pressure/issues/164#issuecomment-2056303587 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 15 April 2024 09:00:13 UTC