WebFeature


public static class WebFeature


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

Summary

Constants

static final @NonNull String

Feature for WebContent.

Public fields

static @NonNull WebFeature

Public methods

static final boolean

Return whether a feature is supported at runtime.

Constants

WEB_CONTENT

Added in 1.0.0-alpha01
public static final @NonNull String WEB_CONTENT

Feature for WebContent.

Public fields

INSTANCE

Added in 1.0.0-alpha01
public static @NonNull WebFeature INSTANCE

Public methods

isFeatureSupported

Added in 1.0.0-alpha01
public static final boolean isFeatureSupported(@NonNull String feature)

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

Parameters
@NonNull String feature

the feature to be checked

Value is one of the following:

  • WEB_CONTENT
  • WEB_SURFACE

Returns
boolean

true if the feature is supported