enum PermissionType
A list of permissions that StereoKit knows about, each named for the feature it unlocks. On some platforms (like Android), these permissions may need to be explicitly requested before using certain features. Runtimes group features into system permissions differently, so several of these may resolve to the same underlying system permission.
Enum Values
| AmbientEstimation | For estimating ambient lighting from the user’s surroundings, this is what the world lighting source feeds into Lighting.Ambient. This is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.SCENE_UNDERSTANDING_COARSE on Android XR, but varies per-runtime. |
| Anchors | For creating and persisting spatial anchors in the user’s space, via StereoKit’s Anchor API. Some runtimes grant this automatically from the manifest entry, while others treat it as an interactive permission. This maps to android.permission.SCENE_UNDERSTANDING_COARSE on Android XR and com.oculus.permission.USE_ANCHOR_API on Meta, but varies per-runtime. |
| Camera | For access to camera data, this is typically an interactive permission that the user will need to explicitly approve. SK doesn’t use this permission internally yet, but is often a useful permission for XR apps. This maps to android.permission.CAMERA on Android. |
| DepthSensing | For reading depth data about the user’s surroundings via Sensor.Depth, useful for things like occlusion. This is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.SCENE_UNDERSTANDING_FINE on Android XR, but varies per-runtime. |
| EyeInput | For access to input quality eye tracking data, this is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.EYE_TRACKING_FINE on Android XR, but varies per-runtime. |
| FaceTracking | For access to facial expression data, this is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.FACE_TRACKING on Android XR, but varies per-runtime. |
| HandTracking | For access to per-joint hand tracking data. Some runtimes may have this permission interactive, but many do not. This maps to android.permission.HAND_TRACKING on Android XR, but varies per-runtime. |
| MarkerTracking | For detecting QR codes, ArUco markers and AprilTags in the user’s space, via the spatial marker capabilities. This is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.SCENE_UNDERSTANDING_COARSE on Android XR, but varies per-runtime. |
| Max | This enum is for tracking the number of value in this enum. |
| Microphone | For access to microphone data, this is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.RECORD_AUDIO on Android. |
| PlaneTracking | For detecting walls, floors, tables and other surfaces in the user’s space, via spatial_capability_plane_tracking. This is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.SCENE_UNDERSTANDING_COARSE on Android XR, but varies per-runtime. |
| ReflectionEstimation | For estimating an environment cubemap from the user’s surroundings, this is what the world lighting source feeds into Lighting.Reflection. The estimate shows imagery of the user’s space, so runtimes may treat it more strictly than ambient estimation. This is typically an interactive permission that the user will need to explicitly approve. This maps to android.permission.SCENE_UNDERSTANDING_FINE on Android XR, but varies per-runtime. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!