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

Geolocation 0

Permission is for geolocation.

ImmersiveView 6

Permission is for immersive view (WebVR).

Media 2

Permission is for media.

PointerLock 3

Permission is for pointer lock.

Screen 5

Permission is for screen capture.

UnlimitedIndexedDBQuota 1

Permission is for unlimited IndexedDB data storage.

WebNotifications 4

Permission is for web notifications.

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