WebFeature


object WebFeature


Utility class for checking which Web features are supported on the device.

Summary

Constants

const String

Feature for WebContent.

Public functions

Boolean

Return whether a feature is supported at runtime.

Constants

WEB_CONTENT

Added in 1.0.0-alpha01
const val WEB_CONTENT: String

Feature for WebContent.

Public functions

isFeatureSupported

Added in 1.0.0-alpha01
fun isFeatureSupported(feature: String): Boolean

Return whether a feature is supported at runtime. On devices where this is not supported, an UnsupportedOperationException will be thrown.

Parameters
feature: String

the feature to be checked

Value is one of the following:

  • WEB_CONTENT
  • WEB_SURFACE

Returns
Boolean

true if the feature is supported