Skip to content

WebBrowser

Configuration of an internet-connected web browser device with no built-in sensors.

A PrimaryDeviceConfiguration registered with a WebBrowserRegistration.

Inheritance
Annotations

Constructors

WebBrowser.fromJson

WebBrowser.fromJson(
  1. Map<String, dynamic> json
)

WebBrowser

WebBrowser({
  1. String roleName = WebBrowser.DEFAULT_ROLE_NAME,
})

Create a new web browser device descriptor. If roleName is not specified, then the DEFAULT_ROLE_NAME is used.

Constants

DEFAULT_ROLE_NAME

String const DEFAULT_ROLE_NAME

The default role name for a web browser device.

DEVICE_TYPE

String const DEVICE_TYPE

The type of a web browser device.

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

createRegistration

WebBrowserRegistration createRegistration({
  1. String? deviceId,
  2. String? deviceDisplayName,
  3. String? browserName,
  4. int? deviceMemory,
  5. String? language,
  6. String? vendor,
  7. int? maxTouchPoints,
  8. int? hardwareConcurrency,
})
override

Create a DeviceRegistration which can be used to configure this device for deployment.

Override this method to configure device-specific registration options, if any.

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.