From 521f6998908657b00834c1bd9796fa55d8537a43 Mon Sep 17 00:00:00 2001 From: semuserable Date: Thu, 24 Jun 2021 11:43:54 +0300 Subject: [PATCH 1/3] Device new properties described --- src/docs/sdk/event-payloads/contexts.mdx | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/src/docs/sdk/event-payloads/contexts.mdx b/src/docs/sdk/event-payloads/contexts.mdx index d700bff3d2..476a4d91da 100644 --- a/src/docs/sdk/event-payloads/contexts.mdx +++ b/src/docs/sdk/event-payloads/contexts.mdx @@ -149,6 +149,54 @@ 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. On some platforms it's not possible to query the CPU frequency. + Currently such platforms are iOS and WebGL. For example, `2500`. + +`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. Depends on the running platform. For example, `iOS: UIDevice.identifierForVendor (UUID)`, + `Android: md5 of ANDROID_ID`, `Windows Store Apps: AdvertisingManager::AdvertisingId (possible fallback to HardwareIdentification::GetPackageSpecificToken().Id)`, + `Windows Standalone: hash from the concatenation of strings taken from Computer System Hardware Classes`. + +`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 From 311d08a1ed4f515a87160c7e51088208e16ad20e Mon Sep 17 00:00:00 2001 From: semuserable Date: Thu, 24 Jun 2021 18:36:18 +0300 Subject: [PATCH 2/3] Gpu new properties described --- src/docs/sdk/event-payloads/contexts.mdx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/docs/sdk/event-payloads/contexts.mdx b/src/docs/sdk/event-payloads/contexts.mdx index 476a4d91da..12200fa5f9 100644 --- a/src/docs/sdk/event-payloads/contexts.mdx +++ b/src/docs/sdk/event-payloads/contexts.mdx @@ -382,6 +382,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 From 497a5dff47dbd10d62c65d8f88303d4791a351b7 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 25 Jun 2021 16:46:08 -0400 Subject: [PATCH 3/3] Apply suggestions from code review --- src/docs/sdk/event-payloads/contexts.mdx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/docs/sdk/event-payloads/contexts.mdx b/src/docs/sdk/event-payloads/contexts.mdx index 12200fa5f9..e679bd2fdd 100644 --- a/src/docs/sdk/event-payloads/contexts.mdx +++ b/src/docs/sdk/event-payloads/contexts.mdx @@ -160,8 +160,7 @@ The `type` and default key is `"device"`. `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. On some platforms it's not possible to query the CPU frequency. - Currently such platforms are iOS and WebGL. For example, `2500`. + especially on low-powered devices like phones and laptops. `device_type` @@ -173,9 +172,7 @@ The `type` and default key is `"device"`. `device_unique_identifier` -: _Optional_. Unique device identifier. Depends on the running platform. For example, `iOS: UIDevice.identifierForVendor (UUID)`, - `Android: md5 of ANDROID_ID`, `Windows Store Apps: AdvertisingManager::AdvertisingId (possible fallback to HardwareIdentification::GetPackageSpecificToken().Id)`, - `Windows Standalone: hash from the concatenation of strings taken from Computer System Hardware Classes`. +: _Optional_. Unique device identifier. This value might only be used if `sendDefaultPii` is enabled. `supports_vibration`