WebViewPermissionResourceType class

Types of resources that can require permissions.

Platform specific implementations can create their own resource types.

This example demonstrates how to extend the WebViewPermissionResourceType to create additional platform-specific types:

class AndroidWebViewPermissionResourceType
    extends WebViewPermissionResourceType {
  const AndroidWebViewPermissionResourceType._(super.name);

  static const AndroidWebViewPermissionResourceType midiSysex =
      AndroidWebViewPermissionResourceType._('midiSysex');

  static const AndroidWebViewPermissionResourceType protectedMediaId =
      AndroidWebViewPermissionResourceType._('protectedMediaId');
}
Annotations

Constructors

WebViewPermissionResourceType(String name)
Constructs a WebViewPermissionResourceType.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Unique name of the resource type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

camera → const WebViewPermissionResourceType
A media device that can capture video.
microphone → const WebViewPermissionResourceType
A media device that can capture audio.