@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface XRPermissionDescriptor
extends PermissionDescriptor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XRPermissionDescriptor.Builder |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
mode()
The mode property of the XRPermissionDescriptor dictionary is a string taken from the XRSessionMode enumerated type, specifying which Web XR session mode (inline, immersive-vr, or immersive-ar) the described permissions will be used for.
|
static XRPermissionDescriptor.Builder |
name(java.lang.String name) |
JsArray<jsinterop.base.Any> |
optionalFeatures()
The XRPermissionDescriptor dictionary's optionalFeatures property is used to specify a list of WebXR features which your app or site would like to use but can operate without if permission isn't granted to use them.
|
JsArray<jsinterop.base.Any> |
requiredFeatures()
The XRPermissionDescriptor dictionary's requiredFeatures property should be set prior to calling navigator.permissions.query() to a list of WebXR features which must be supported for the app to work.
|
void |
setMode(@JsNonNull java.lang.String mode)
The mode property of the XRPermissionDescriptor dictionary is a string taken from the XRSessionMode enumerated type, specifying which Web XR session mode (inline, immersive-vr, or immersive-ar) the described permissions will be used for.
|
default void |
setOptionalFeatures(jsinterop.base.Any... optionalFeatures)
The XRPermissionDescriptor dictionary's optionalFeatures property is used to specify a list of WebXR features which your app or site would like to use but can operate without if permission isn't granted to use them.
|
void |
setOptionalFeatures(@JsNonNull JsArray<jsinterop.base.Any> optionalFeatures)
The XRPermissionDescriptor dictionary's optionalFeatures property is used to specify a list of WebXR features which your app or site would like to use but can operate without if permission isn't granted to use them.
|
default void |
setRequiredFeatures(jsinterop.base.Any... requiredFeatures)
The XRPermissionDescriptor dictionary's requiredFeatures property should be set prior to calling navigator.permissions.query() to a list of WebXR features which must be supported for the app to work.
|
void |
setRequiredFeatures(@JsNonNull JsArray<jsinterop.base.Any> requiredFeatures)
The XRPermissionDescriptor dictionary's requiredFeatures property should be set prior to calling navigator.permissions.query() to a list of WebXR features which must be supported for the app to work.
|
name, setName@JsOverlay @Nonnull static XRPermissionDescriptor.Builder name(@PermissionName @Nonnull java.lang.String name)
name in interface PermissionDescriptor@JsProperty(name="mode") @XRSessionMode java.lang.String mode()
@JsProperty void setMode(@XRSessionMode @JsNonNull java.lang.String mode)
@JsProperty(name="optionalFeatures") JsArray<jsinterop.base.Any> optionalFeatures()
@JsProperty void setOptionalFeatures(@JsNonNull JsArray<jsinterop.base.Any> optionalFeatures)
@JsOverlay
default void setOptionalFeatures(@Nonnull
jsinterop.base.Any... optionalFeatures)
@JsProperty(name="requiredFeatures") JsArray<jsinterop.base.Any> requiredFeatures()
@JsProperty void setRequiredFeatures(@JsNonNull JsArray<jsinterop.base.Any> requiredFeatures)
@JsOverlay
default void setRequiredFeatures(@Nonnull
jsinterop.base.Any... requiredFeatures)