It derives from <GObject>.
A permission request for accessing virtual reality (VR) and augmented reality (AR) devices, including sensors and head-mounted displays.
WebKitXRPermissionRequest represents a request for permission to decide whether WebKit can initialize an XR session through the WebXR API.
When a WebKitXRPermissionRequest is not handled by the user, it is denied by default.
Gets the optional features that need user consent.
These features can be granted by calling xrpermission-request:set-granted-optional-features
before allowing the request with permission-request:allow.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionFeatures>.
a <WebKitXRSessionFeatures> flag
combination
Gets the required features that need user consent.
These features are automatically granted if the request is allowed with
permission-request:allow.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionFeatures>.
a <WebKitXRSessionFeatures> flag
combination
Gets the features requested by the origin for the XR device, which are either granted by default or have been explicitly granted by the user.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionFeatures>.
a <WebKitXRSessionFeatures> flag
combination
Gets the full set of optional features requested by the web application.
This includes both already granted features and those requiring consent.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionFeatures>.
a <WebKitXRSessionFeatures> flag
combination
Gets the full set of required features requested by the web application.
This includes both already granted features and those requiring consent.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionFeatures>.
a <WebKitXRSessionFeatures> flag
combination
Gets the security origin that initiated the permission request.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitSecurityOrigin>.
the <WebKitSecurityOrigin> that initiated
the request
Gets the session mode for which permission is being requested.
Passed: a <WebKitXRPermissionRequest>.
Returned: a <WebKitXRSessionMode>.
Sets which optional features should be granted if the permission request is allowed.
This function should be called with a subset of the features from
xrpermission-request:get-consent-optional-features
before calling permission-request:allow. If the request is denied, no
features are granted, regardless of what is set here.
Passed: a <WebKitXRPermissionRequest>.
Passed: a <WebKitXRSessionFeatures>, or
a list of its symbols, or one of them.
granted features