Delen via


WebViewPermissionType Enum

Definition

Defines constants the specify the type of permission requested in a WebView.

public enum class WebViewPermissionType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class WebViewPermissionType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum WebViewPermissionType
Public Enum WebViewPermissionType
Inheritance
WebViewPermissionType
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Geolocation 0

Permission is for geolocation.

UnlimitedIndexedDBQuota 1

Permission is for unlimited IndexedDB data storage.

Media 2

Permission is for media.

PointerLock 3

Permission is for pointer lock.

WebNotifications 4

Permission is for web notifications.

Screen 5

Permission is for screen capture.

ImmersiveView 6

Permission is for immersive view (WebVR).

Remarks

This enumeration provides values for the WebViewPermissionRequest.PermissionType and WebViewDeferredPermissionRequest.PermissionType properties.

Version history

Windows version SDK version Value added
1511 10586 PointerLock
1607 14393 WebNotifications
1803 17134 ImmersiveView
1803 17134 Screen

Applies to

See also