Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions src/docs/sdk/event-payloads/contexts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,51 @@ The `type` and default key is `"device"`.

: _Optional_. The language of the device. For example, `en-US`.

`processor_count`

: _Optional_. Number of "logical processors". For example, `8`.

`cpu_description`

: _Optional_. CPU description. For example, `Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz`.

`processor_frequency`

: _Optional_. Processor frequency in MHz. Note that the actual CPU frequency might vary depending on current load and power conditions,
especially on low-powered devices like phones and laptops.

`device_type`

: _Optional_. Kind of device the application is running on. For example, `Unknown, Handheld, Console, Desktop`.

`battery_status`

: _Optional_. Status of the device's battery. For example, `Unknown, Charging, Discharging, NotCharging, Full`.

`device_unique_identifier`

: _Optional_. Unique device identifier. This value might only be used if `sendDefaultPii` is enabled.

`supports_vibration`

: _Optional_. Is vibration available on the device?

`supports_accelerometer`

: _Optional_. Is accelerometer available on the device?

`supports_gyroscope`

: _Optional_. Is gyroscope available on the device?

`supports_audio`

: _Optional_. Is audio available on the device?

`supports_location_service`

: _Optional_. Is the device capable of reporting its location?

## OS Context

OS context describes the operating system on which the event was created. In web
Expand Down Expand Up @@ -334,6 +379,30 @@ GPU context describes the GPU of the device.

: _Optional_. The Non-Power-Of-Two-Support support.

`max_texture_size`

: _Optional_. Largest size of a texture that is supported by the graphics hardware. For example, `16384`.

`graphics_shader_level`

: _Optional_. Approximate "shader capability" level of the graphics device. For example, `Shader Model 2.0, OpenGL ES 3.0, Metal / OpenGL ES 3.1, 27 (unknown)`.

`supports_draw_call_instancing`

: _Optional_. Is GPU draw call instancing supported?

`supports_ray_tracing`

: _Optional_. Is ray tracing available on the device?

`supports_compute_shaders`

: _Optional_. Are compute shaders available on the device?

`supports_geometry_shaders`

: _Optional_. Are geometry shaders available on the device?

Example:

```json
Expand Down