English中文

FeatureDetection

一组检测当前浏览器是否支持各种功能的函数。 A set of functions to detect whether the current browser supports various features.

方法 Methods

static Cesium.FeatureDetection.supportsBasis(scene)boolean

检测当前浏览器是否支持 Basis Universal 纹理以及转码它们所需的 Web 程序集模块。 Detects whether the current browser supports Basis Universal textures and the web assembly modules needed to transcode them.
名称 Name 类型 Type 说明 Description
scene Scene
返回: Returns:
如果浏览器支持 Web Assembly 模块并且场景支持 Basis Universal 纹理,则为 true;如果不支持,则为 false。 true if the browser supports web assembly modules and the scene supports Basis Universal textures, false if not.

static Cesium.FeatureDetection.supportsBigInt()boolean

检测当前浏览器是否支持BigInt。 Detects whether the current browser supports BigInt.
返回: Returns:
如果浏览器支持 BigInt,则为 true;如果不支持,则为 false。 true if the browser supports BigInt, false if not.
另见: See:

static Cesium.FeatureDetection.supportsBigInt64Array()boolean

检测当前浏览器是否支持 BigInt64Array 类型数组。 Detects whether the current browser supports BigInt64Array typed arrays.
返回: Returns:
如果浏览器支持 BigInt64Array 类型数组,则为 true;如果不支持,则为 false。 true if the browser supports BigInt64Array typed arrays, false if not.
另见: See:

static Cesium.FeatureDetection.supportsBigUint64Array()boolean

检测当前浏览器是否支持 BigUint64Array 类型数组。 Detects whether the current browser supports BigUint64Array typed arrays.
返回: Returns:
如果浏览器支持 BigUint64Array 类型数组,则为 true;如果不支持,则为 false。 true if the browser supports BigUint64Array typed arrays, false if not.
另见: See:

static Cesium.FeatureDetection.supportsEsmWebWorkers()boolean

检测当前浏览器是否支持 Web Worker 中的 ECMAScript 模块。 Detects whether the current browser supports ECMAScript modules in web workers.
返回: Returns:
如果浏览器支持 Web Worker 中的 ECMAScript 模块,则为 true。 true if the browser supports ECMAScript modules in web workers.
另见: See:

static Cesium.FeatureDetection.supportsFullscreen()boolean

检测当前浏览器是否支持全屏标准。 Detects whether the current browser supports the full screen standard.
返回: Returns:
如果浏览器支持全屏标准,则为 true;如果不支持,则为 false。 true if the browser supports the full screen standard, false if not.
另见: See:

static Cesium.FeatureDetection.supportsTypedArrays()boolean

检测当前浏览器是否支持类型化数组。 Detects whether the current browser supports typed arrays.
返回: Returns:
如果浏览器支持类型化数组,则为 true;如果不支持,则为 false。 true if the browser supports typed arrays, false if not.
另见: See:

static Cesium.FeatureDetection.supportsWebAssembly()boolean

检测当前浏览器是否支持WebAssembly。 Detects whether the current browser supports Web Assembly.
返回: Returns:
如果浏览器支持 Web Assembly,则为 true;如果不支持,则为 false。 true if the browsers supports Web Assembly, false if not.
另见: See:

static Cesium.FeatureDetection.supportsWebgl2(scene)boolean

检测当前浏览器是否支持指定场景的 WebGL2 渲染上下文。 Detects whether the current browser supports a WebGL2 rendering context for the specified scene.
名称 Name 类型 Type 说明 Description
scene Scene 指定渲染上下文的 Cesium 场景 the Cesium scene specifying the rendering context
返回: Returns:
如果浏览器支持 WebGL2 渲染上下文,则为 true;如果不支持,则为 false。 true if the browser supports a WebGL2 rendering context, false if not.
另见: See:

static Cesium.FeatureDetection.supportsWebWorkers()boolean

检测当前浏览器是否支持Web Workers。 Detects whether the current browser supports Web Workers.
返回: Returns:
如果浏览器支持 Web Workers,则为 true;如果不支持,则为 false。 true if the browsers supports Web Workers, false if not.
另见: See:
需要帮助吗?获得答案的最快方法是从社区和团队那里获得答案 Need help? The fastest way to get answers is from the community and team on the Cesium Forum.