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
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.