detectBrowserInfo
detectBrowserInfo(
options?):BrowserInfo
Defined in: packages/browser-adapter/src/env-probe.ts:144
识别当前浏览器(基于 UA 嗅探)。
注意:UA 嗅探不可靠,浏览器可伪装 UA。优先用 detectBrowserCapabilities() 检测实际能力。本函数仅用于已知浏览器的特定 workaround(如 Safari 的 createImageBitmap resize 选项兼容性)。
结果在首次调用后缓存,同一会话内重复调用返回同一对象。 如需强制重新识别(测试场景),传 { force: true }。
Parameters
Section titled “Parameters”options?
Section titled “options?”force?
Section titled “force?”boolean