CoreWebView2PermissionKind Enum

Definition

Indicates the kind of a permission request.

public enum CoreWebView2PermissionKind
type CoreWebView2PermissionKind = 
Public Enum CoreWebView2PermissionKind
Inheritance
CoreWebView2PermissionKind

Fields

Autoplay 9

Indicates permission to play audio and video automatically on sites. This permission affects the autoplay attribute and play method of the audio and video HTML elements, and the start method of the Web Audio API. See the Autoplay guide for media and Web Audio APIs for details.

Camera 2

Indicates permission to capture video.

ClipboardRead 6

Indicates permission to read the system clipboard without a user gesture.

FileReadWrite 8

Indicates permission to read and write to files or folders on the device. Permission is requested when developers use the File System Access API to show the file or folder picker to the end user, and then request "readwrite" permission for the user's selection.

Geolocation 3

Indicates permission to access geolocation.

LocalFonts 10

Indicates permission to use fonts on the device. Permission is requested when developers use the Local Font Access API to query the system fonts available for styling web content.

Microphone 1

Indicates permission to capture audio.

MidiSystemExclusiveMessageAccess 11

Indicates permission to send and receive system exclusive messages to/from MIDI (Musical Instrument Digital Interface) devices. Permission is requested when developers use the Web MIDI API to request access to system exclusive MIDI messages.

MidiSystemExclusiveMessages 11

Indicates permission to send and receive system exclusive messages to/from MIDI (Musical Instrument Digital Interface) devices. Permission is requested when developers use the Web MIDI API to request access to system exclusive MIDI messages.

MultipleAutomaticDownloads 7

Indicates permission to automatically download multiple files. Permission is requested when multiple downloads are triggered in quick succession.

Notifications 4

Indicates permission to send web notifications. Apps that would like to show notifications should handle PermissionRequested and/or PermissionRequested events and no browser permission prompt will be shown for notification requests. Note that push notifications are currently unavailable in WebView2.

OtherSensors 5

Indicates permission to access generic sensor. Generic Sensor covers ambient-light-sensor, accelerometer, gyroscope, and magnetometer.

UnknownPermission 0

Indicates an unknown permission.

WindowManagement 12

Indicates permission to open and place windows on the screen. Permission is requested when developers use the Multi-Screen Window Placement API to get screen details.

Applies to