Parameter | Description |
---|---|
sUrl | URL of the page requesting the permission |
eKind | Kind of permission requested |
isUserInitiated | True if the user initiated the request |
eState (ByRef) | Set to override the request result |
Procedure OnPermissionRequested String sUrl OLECOREWEBVIEW2_PERMISSION_KIND eKind Boolean isUserInitiated OLECOREWEBVIEW2_PERMISSION_STATE ByRef eState
This message is sent when the page requires a specific permission.
Implement this event to override the default browser behavior and grant or deny the requested permission.
This can be done by changing eState to OLECOREWEBVIEW2_PERMISSION_STATE_ALLOW or OLECOREWEBVIEW2_PERMISSION_STATE_DENY.
Requested permission kinds can be:
Constant | Meaning |
---|---|
OLECOREWEBVIEW2_PERMISSION_KIND_UNKNOWN_PERMISSION | Unknown |
OLECOREWEBVIEW2_PERMISSION_KIND_MICROPHONE | The page wants to access the device its microphone. |
OLECOREWEBVIEW2_PERMISSION_KIND_CAMERA | The page wants to access the device its camera. |
OLECOREWEBVIEW2_PERMISSION_KIND_GEOLOCATION | The page wants to access the device its current location. |
OLECOREWEBVIEW2_PERMISSION_KIND_NOTIFICATIONS | The page wants to be able to send notifications. |
OLECOREWEBVIEW2_PERMISSION_KIND_OTHER_SENSORS | |
OLECOREWEBVIEW2_PERMISSION_KIND_CLIPBOARD_READ | The page wants access to the clipboard. |