다음을 통해 공유


CoreWebView2PermissionKind Enum

Definition

Indicates the type of a permission request.

public enum CoreWebView2PermissionKind
type CoreWebView2PermissionKind = 
Public Enum CoreWebView2PermissionKind
Inheritance
CoreWebView2PermissionKind

Fields

Name Value Description
UnknownPermission 0

Indicates an unknown permission.

Microphone 1

Indicates permission to capture audio.

Camera 2

Indicates permission to capture video.

Geolocation 3

Indicates permission to access geolocation.

Notifications 4

Indicates permission to send web notifications. Apps that would like to show notifications should handle 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 covering ambient-light-sensor, accelerometer, gyroscope, and magnetometer.

ClipboardRead 6

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

MultipleAutomaticDownloads 7

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

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.

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.

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.

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.

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