From ccddd3d27e2945d43ba26fa426d294d1aa6cd35d Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:45 +0000
Subject: [PATCH 01/21] File
src/content/docs/en/sdk/android/v4/features/callbacks.mdx was translated to
zh-CN locale
---
.../zh/sdk/android/v4/features/callbacks.mdx | 228 ++++++++----------
1 file changed, 95 insertions(+), 133 deletions(-)
diff --git a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
index 36e05e28aa..f9f04157b8 100644
--- a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: 发送回传信息
-description: 使用这些方法向 Adjust 发送回传信息。
-slug: zh/sdk/android/v4/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v5: /zh/sdk/android/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/v4/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v5: "/en/sdk/android/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-设置回传来在 SDK 向 Adjust 发送信息时触发函数。您可以针对 **会话** 和 **事件** 设置回传。
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-您必须在初始化 SDK **之前** 注册回传。
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## 会话回传 {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-设置会话回传来在 SDK 向 Adjust 发送会话信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+### Success callbacks \{\#success\-callbacks\}
-会话回传可访问响应数据对象。您可以在回传函数中使用其属性。
-
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `JsonResponse` | `Dictionary ` | 带服务器响应的 JSON 对象。 |
-| `WillRetry` | `Boolean` | 指示包发送失败后是否再次尝试发送。 |
-
-### success 回传 {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-设置 success 回传来在 SDK 记录到会话时触发函数。
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,8 +74,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -89,15 +85,12 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
-
-#### 示例 {#example}
+
-This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
+#### Example \{\#example\}
-
-
+该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -111,8 +104,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -127,8 +119,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -141,23 +132,20 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### failure 回传 {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-设置 failure 回传来在 SDK 未能记录到会话时触发函数。
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -171,8 +159,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -187,8 +174,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -199,15 +185,12 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 示例 {#example-1}
+#### Example \{\#example\-1\}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -221,8 +204,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -237,8 +219,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -254,39 +235,37 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
-## 事件回传 {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-设置事件回传来在 SDK 向 Adjust 发送事件信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-事件回传可访问响应数据对象。您可以在回传函数中使用其属性。
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `EventToken` | `String` | 事件识别码 |
-| `CallbackId` | `String` | 事件对象上设置的自定义回传 ID |
-| `JsonResponse` | `Dictionary ` | 带服务器响应的 JSON 对象。 |
-| `WillRetry` | `Boolean` | 指示包发送失败后是否再次尝试发送。 |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### success 回传 {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-设置 success 回传来在 SDK 记录到事件时触发函数。
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -300,8 +279,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -316,8 +294,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -328,15 +305,12 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 示例 {#example-2}
+#### Example \{\#example\-2\}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -350,8 +324,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,8 +339,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -380,23 +352,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### failure 回传 {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-设置 failure 回传来在 SDK 未能记录到事件时触发函数。
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -410,8 +379,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -426,8 +394,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -438,15 +405,12 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 示例 {#example-3}
+#### Example \{\#example\-3\}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -460,8 +424,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -476,8 +439,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailure(eventFailureResponseData) {
@@ -492,5 +454,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
From 607c3f12f47773ebbeb6264a1fb2850c86b09019 Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:48 +0000
Subject: [PATCH 02/21] File
src/content/docs/en/sdk/android/v4/features/callbacks.mdx was translated to
ja-JP locale
---
.../ja/sdk/android/v4/features/callbacks.mdx | 234 ++++++++----------
1 file changed, 98 insertions(+), 136 deletions(-)
diff --git a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
index 820f5684c2..72d6f101df 100644
--- a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: コールバック情報を送信する
-description: Adjustにコールバック情報を送信するには、これらのメソッドを使用してください。
-slug: ja/sdk/android/v4/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v5: /ja/sdk/android/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/v4/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v5: "/en/sdk/android/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-SDKがAdjustに情報を送信する時に関数をトリガーするコールバックを設定します。コールバックは **セッション** と **イベント** に対して設定できます。
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-SDKを初期化する **前** にコールバックパラメーターを登録することが必要です。
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## セッションコールバック {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-SDKがセッション情報を送信した時に関数をトリガーする、セッションコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、SDKが情報を送信している間に問題が発生した際にトリガーします。
+### Success callbacks \{\#success\-callbacks\}
-セッションコールバックは、レスポンス データ オブジェクトにアクセスできます。そのプロパティをコールバック関数内で使用することが可能です。
-
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ---------------------------------------------------- |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイスID |
-| `JsonResponse` | `Dictionary ` | サーバーからのレスポンスを含むJSONオブジェクト |
-| `WillRetry` | `Boolean` | 失敗したパッケージの再送を試みるかどうかを示します。 |
-
-### Successコールバック {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-SDKがセッションを記録した時に関数をトリガーする、successコールバックを設定します。
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,8 +74,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -89,15 +85,12 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
-
-#### 例 {#example}
+
-この例では、コールバック関数`sessionSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがセッションを記録した際にタイムスタンプをログに記録します。
+#### Example \{\#example\}
-
-
+This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -111,8 +104,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -127,8 +119,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -141,23 +132,20 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### Failureコールバック {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -171,8 +159,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -187,8 +174,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -199,15 +185,12 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 例 {#example-1}
+#### Example \{\#example\-1\}
-この例では、コールバック関数`sessionFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、セッションの失敗メッセージをログに記録します。
-
-
-
+This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -221,8 +204,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -237,8 +219,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -254,39 +235,37 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
-## イベントコールバック {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-SDKがイベント情報を送信した時に関数をトリガーする、イベントコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、SDKが情報を送信している間に問題が発生した際にトリガーします。
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-イベントコールバックは、レスポンス データ オブジェクトにアクセスできます。そのプロパティをコールバック関数内で使用することが可能です。
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ------------------------------------------------------ |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイスID |
-| `EventToken` | `String` | イベントトークン |
-| `CallbackId` | `String` | イベントオブジェクトに設定されたカスタムコールバックID |
-| `JsonResponse` | `Dictionary ` | サーバーからのレスポンスを含むJSONオブジェクト |
-| `WillRetry` | `Boolean` | 失敗したパッケージの再送を試みるかどうかを示します。 |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Successコールバック {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-SDKがイベントを記録した時に関数をトリガーする、successコールバックを設定します。
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -300,8 +279,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -316,8 +294,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -328,15 +305,12 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
-
-#### 例 {#example-2}
+
-この例では、コールバック関数`eventSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがイベントを記録した際にタイムスタンプをログに記録します。
+#### Example \{\#example\-2\}
-
-
+This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -350,8 +324,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,8 +339,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -380,23 +352,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### Failureコールバック {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -410,8 +379,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -426,8 +394,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -438,15 +405,12 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
-
-#### 例 {#example-3}
+
-この例では、コールバック関数`eventFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、イベントの失敗メッセージをログに記録します。
+#### Example \{\#example\-3\}
-
-
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -460,8 +424,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -476,8 +439,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailure(eventFailureResponseData) {
@@ -492,5 +454,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
From 4d43b3e23e9a6d77fb20bdd867c41f19bd7363af Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:50 +0000
Subject: [PATCH 03/21] File
src/content/docs/en/sdk/android/v4/features/callbacks.mdx was translated to
ko-KR locale
---
.../ko/sdk/android/v4/features/callbacks.mdx | 228 ++++++++----------
1 file changed, 95 insertions(+), 133 deletions(-)
diff --git a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
index f73d94fedc..72d6f101df 100644
--- a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: 콜백 정보 전송
-description: 이 메서드를 사용하여 콜백 정보를 Adjust로 전송합니다.
-slug: ko/sdk/android/v4/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v5: /ko/sdk/android/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/v4/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v5: "/en/sdk/android/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-SDK가 Adjust에 정보를 보낼 때 함수를 트리거하는 콜백을 설정합니다. 콜백은 **세션** 및 **이벤트** 에 대해 설정할 수 있습니다.
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-SDK 초기화 **이전** 에 콜백을 등록해야 합니다.
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## 세션 콜백 {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-SDK가 세션 정보를 전송할 때 함수를 트리거하는 세션 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 SDK가 정보를 전송하는 동안 문제가 발생할 경우 트리거합니다.
+### Success callbacks \{\#success\-callbacks\}
-세션 콜백은 응답 데이터 객체에 액세스가 가능하며, 해당 속성을 콜백 함수 내에서 사용할 수 있습니다.
-
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 ID. |
-| `JsonResponse` | `Dictionary ` | 서버로부터의 응답을 포함한 JSON 객체. |
-| `WillRetry` | `Boolean` | 실패한 패키지 재전송 시도 여부를 표시. |
-
-### Success 콜백 {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-SDK가 세션을 기록할 때 함수를 트리거하도록 success 콜백을 설정합니다.
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,8 +74,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -89,15 +85,12 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 예시 {#example}
+#### Example \{\#example\}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -111,8 +104,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -127,8 +119,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
-
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -141,23 +132,20 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### Failure 콜백 {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-SDK가 세션 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -171,8 +159,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -187,8 +174,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -199,15 +185,12 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 예시 {#example-1}
+#### Example \{\#example\-1\}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -221,8 +204,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -237,8 +219,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
-
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -254,39 +235,37 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
-## 이벤트 콜백 {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-SDK가 이벤트 정보를 전송할 때 함수를 트리거하는 이벤트 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 SDK가 정보를 전송하는 동안 문제가 발생할 경우 트리거합니다.
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-이벤트 콜백은 응답 데이터 객체에 액세스가 가능하며, 해당 속성을 콜백 함수 내에서 사용할 수 있습니다.
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 ID. |
-| `EventToken` | `String` | 이벤트 토큰 |
-| `CallbackId` | `String` | 이벤트 객체에 설정된 맞춤 정의 콜백 ID |
-| `JsonResponse` | `Dictionary ` | 서버로부터의 응답을 포함한 JSON 객체. |
-| `WillRetry` | `Boolean` | 실패한 패키지 재전송 시도 여부를 표시. |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success 콜백 {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-SDK가 이벤트를 기록할 때 함수를 트리거하는 success 콜백을 설정합니다.
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -300,8 +279,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -316,8 +294,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -328,15 +305,12 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
-
+
-#### 예시 {#example-2}
+#### Example \{\#example\-2\}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -350,8 +324,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,8 +339,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -380,23 +352,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
-
+
-### Failure 콜백 {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-SDK가 이벤트 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -410,8 +379,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -426,8 +394,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -438,15 +405,12 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
-
-
-#### 예시 {#example-3}
+
-예시에서는 콜백 함수 `eventFailure`를 생성하고 이 함수를 **failure** 콜백으로 등록하는 방법을 보여줍니다. 이 함수는 세션 실패 메시지를 로그합니다.
+#### Example \{\#example\-3\}
-
-
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -460,8 +424,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -476,8 +439,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
-
+
```js
function eventFailure(eventFailureResponseData) {
@@ -492,5 +454,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
From 96dc1b5a1f92607d748522303b0135a1e331e861 Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:53 +0000
Subject: [PATCH 04/21] File
src/content/docs/en/sdk/android/v5/features/callbacks.mdx was translated to
zh-CN locale
---
.../zh/sdk/android/v5/features/callbacks.mdx | 207 ++++++++----------
1 file changed, 88 insertions(+), 119 deletions(-)
diff --git a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
index b2463c27c4..c050fd6f99 100644
--- a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: 发送回传信息
-description: 使用这些方法向 Adjust 发送回传信息。
-slug: zh/sdk/android/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v4: /zh/sdk/android/v4/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v4: "/en/sdk/android/v4/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-设置回传来在 SDK 向 Adjust 发送信息时触发函数。您可以针对 **会话** 和 **事件** 设置回传。
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-您必须在初始化 SDK **之前** 注册回传。
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## 会话回传 {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-设置会话回传来在 SDK 向 Adjust 发送会话信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+### Success callbacks \{\#success\-callbacks\}
-会话回传可访问响应数据对象。您可以在回传函数中使用其属性。
-
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `JsonResponse` | `Dictionary ` | 带服务器响应的 JSON 对象。 |
-| `WillRetry` | `Boolean` | 指示包发送失败后是否再次尝试发送。 |
-
-### success 回传 {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-设置 success 回传来在 SDK 记录到会话时触发函数。
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,15 +74,12 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
-
-#### 示例 {#example}
+
-This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
+#### Example \{\#example\}
-
-
+该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -99,8 +93,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -115,23 +108,20 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
-### failure 回传 {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-设置 failure 回传来在 SDK 未能记录到会话时触发函数。
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -145,8 +135,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -161,15 +150,12 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-#### 示例 {#example-1}
+#### Example \{\#example\-1\}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -183,8 +169,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -199,39 +184,37 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-## 事件回传 {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-设置事件回传来在 SDK 向 Adjust 发送事件信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-事件回传可访问响应数据对象。您可以在回传函数中使用其属性。
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `EventToken` | `String` | 事件识别码 |
-| `CallbackId` | `String` | 事件对象上设置的自定义回传 ID |
-| `JsonResponse` | `Dictionary ` | 带服务器响应的 JSON 对象。 |
-| `WillRetry` | `Boolean` | 指示包发送失败后是否再次尝试发送。 |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### success 回传 {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-设置 success 回传来在 SDK 记录到事件时触发函数。
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -245,8 +228,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -261,15 +243,12 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
-#### 示例 {#example-2}
+#### Example \{\#example\-2\}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -283,8 +262,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -299,8 +277,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -313,23 +290,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
-
+
-### failure 回传 {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-设置 failure 回传来在 SDK 未能记录到事件时触发函数。
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -343,8 +317,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -359,15 +332,12 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
-#### 示例 {#example-3}
+#### Example \{\#example\-3\}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -381,8 +351,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -397,5 +366,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
From a0a53d8fcb7f77ace9cc75b6b3032daa9ef976cb Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:56 +0000
Subject: [PATCH 05/21] File
src/content/docs/en/sdk/android/v5/features/callbacks.mdx was translated to
ja-JP locale
---
.../ja/sdk/android/v5/features/callbacks.mdx | 213 ++++++++----------
1 file changed, 91 insertions(+), 122 deletions(-)
diff --git a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
index ebd105975e..b23687e8ea 100644
--- a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: コールバック情報を送信する
-description: Adjustにコールバック情報を送信するには、これらのメソッドを使用してください。
-slug: ja/sdk/android/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v4: /ja/sdk/android/v4/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v4: "/en/sdk/android/v4/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-SDKがAdjustに情報を送信する時に関数をトリガーするコールバックを設定します。コールバックは **セッション** と **イベント** に対して設定できます。
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-SDKを初期化する **前** にコールバックパラメーターを登録することが必要です。
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## セッションコールバック {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-SDKがセッション情報を送信した時に関数をトリガーする、セッションコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、SDKが情報を送信している間に問題が発生した際にトリガーします。
+### Success callbacks \{\#success\-callbacks\}
-セッションコールバックは、レスポンス データ オブジェクトにアクセスできます。そのプロパティをコールバック関数内で使用することが可能です。
-
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ---------------------------------------------------- |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイスID |
-| `JsonResponse` | `Dictionary ` | サーバーからのレスポンスを含むJSONオブジェクト |
-| `WillRetry` | `Boolean` | 失敗したパッケージの再送を試みるかどうかを示します。 |
-
-### Successコールバック {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-SDKがセッションを記録した時に関数をトリガーする、successコールバックを設定します。
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,15 +74,12 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
-
-#### 例 {#example}
+
-この例では、コールバック関数`sessionSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがセッションを記録した際にタイムスタンプをログに記録します。
+#### Example \{\#example\}
-
-
+This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -99,8 +93,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -115,23 +108,20 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
-### Failureコールバック {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -145,8 +135,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -161,15 +150,12 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-#### 例 {#example-1}
+#### Example \{\#example\-1\}
-この例では、コールバック関数`sessionFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、セッションの失敗メッセージをログに記録します。
-
-
-
+This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -183,8 +169,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -199,39 +184,37 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-## イベントコールバック {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-SDKがイベント情報を送信した時に関数をトリガーする、イベントコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、SDKが情報を送信している間に問題が発生した際にトリガーします。
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-イベントコールバックは、レスポンス データ オブジェクトにアクセスできます。そのプロパティをコールバック関数内で使用することが可能です。
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ------------------------------------------------------ |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイスID |
-| `EventToken` | `String` | イベントトークン |
-| `CallbackId` | `String` | イベントオブジェクトに設定されたカスタムコールバックID |
-| `JsonResponse` | `Dictionary ` | サーバーからのレスポンスを含むJSONオブジェクト |
-| `WillRetry` | `Boolean` | 失敗したパッケージの再送を試みるかどうかを示します。 |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Successコールバック {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-SDKがイベントを記録した時に関数をトリガーする、successコールバックを設定します。
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -245,8 +228,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -261,15 +243,12 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
-
-#### 例 {#example-2}
+
-この例では、コールバック関数`eventSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがイベントを記録した際にタイムスタンプをログに記録します。
+#### Example \{\#example\-2\}
-
-
+This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -283,8 +262,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -299,8 +277,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -313,23 +290,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
-
+
-### Failureコールバック {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -343,8 +317,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -359,15 +332,12 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
-
-#### 例 {#example-3}
+
-この例では、コールバック関数`eventFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、イベントの失敗メッセージをログに記録します。
+#### Example \{\#example\-3\}
-
-
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -381,8 +351,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -397,5 +366,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
From 97e82b02064893739e145e27106578dbcef6007f Mon Sep 17 00:00:00 2001
From: "smartling-github-connector[bot]"
<165276057+smartling-github-connector[bot]@users.noreply.github.com>
Date: Mon, 6 Jan 2025 13:09:59 +0000
Subject: [PATCH 06/21] File
src/content/docs/en/sdk/android/v5/features/callbacks.mdx was translated to
ko-KR locale
---
.../ko/sdk/android/v5/features/callbacks.mdx | 207 ++++++++----------
1 file changed, 88 insertions(+), 119 deletions(-)
diff --git a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
index 8dfb142832..b23687e8ea 100644
--- a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
@@ -1,53 +1,51 @@
---
-title: 콜백 정보 전송
-description: 이 메서드를 사용하여 콜백 정보를 Adjust로 전송합니다.
-slug: ko/sdk/android/features/callbacks
-versions:
- - label: v5
- value: v5
- default: true
- - label: v4
- value: v4
-redirects:
- v4: /ko/sdk/android/v4/features/callbacks
+title: "Send callback information"
+description: "Use these methods to send callback information to Adjust."
+slug: "en/sdk/android/features/callbacks"
+versions:
+ -
+ label: "v5"
+ value: "v5"
+ default: true
+ -
+ label: "v4"
+ value: "v4"
+redirects:
+ v4: "/en/sdk/android/v4/features/callbacks"
---
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
+
-SDK가 Adjust에 정보를 보낼 때 함수를 트리거하는 콜백을 설정합니다. 콜백은 **세션** 및 **이벤트** 에 대해 설정할 수 있습니다.
+You must register your callbacks **before** initializing the SDK.
+
-
+Session callbacks \{\#session\-callbacks\}
+----------------------------------------------
-SDK 초기화 **이전** 에 콜백을 등록해야 합니다.
+Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-
+Session callbacks have access to a response data object. You can use its properties in your callback function.
-## 세션 콜백 {#session-callbacks}
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-SDK가 세션 정보를 전송할 때 함수를 트리거하는 세션 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 SDK가 정보를 전송하는 동안 문제가 발생할 경우 트리거합니다.
+### Success callbacks \{\#success\-callbacks\}
-세션 콜백은 응답 데이터 객체에 액세스가 가능하며, 해당 속성을 콜백 함수 내에서 사용할 수 있습니다.
-
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 ID. |
-| `JsonResponse` | `Dictionary ` | 서버로부터의 응답을 포함한 JSON 객체. |
-| `WillRetry` | `Boolean` | 실패한 패키지 재전송 시도 여부를 표시. |
-
-### Success 콜백 {#success-callbacks}
-
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
-SDK가 세션을 기록할 때 함수를 트리거하도록 success 콜백을 설정합니다.
-
-
-
+Set up success callbacks to trigger functions when the SDK records a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -61,8 +59,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -77,15 +74,12 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
-#### 예시 {#example}
+#### Example \{\#example\}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -99,8 +93,7 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -115,23 +108,20 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
-
+
-### Failure 콜백 {#failure-callbacks}
+### Failure callbacks \{\#failure\-callbacks\}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
-
-SDK가 세션 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -145,8 +135,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -161,15 +150,12 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-#### 예시 {#example-1}
+#### Example \{\#example\-1\}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -183,8 +169,7 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -199,39 +184,37 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
-
+
-## 이벤트 콜백 {#event-callbacks}
+Event callbacks \{\#event\-callbacks\}
+------------------------------------------
-SDK가 이벤트 정보를 전송할 때 함수를 트리거하는 이벤트 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 SDK가 정보를 전송하는 동안 문제가 발생할 경우 트리거합니다.
+Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
-이벤트 콜백은 응답 데이터 객체에 액세스가 가능하며, 해당 속성을 콜백 함수 내에서 사용할 수 있습니다.
+Event callbacks have access to a response data object. You can use its properties in your callback function.
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 ID. |
-| `EventToken` | `String` | 이벤트 토큰 |
-| `CallbackId` | `String` | 이벤트 객체에 설정된 맞춤 정의 콜백 ID |
-| `JsonResponse` | `Dictionary ` | 서버로부터의 응답을 포함한 JSON 객체. |
-| `WillRetry` | `Boolean` | 실패한 패키지 재전송 시도 여부를 표시. |
+| Property | Data type | Description |
+|----------------|-------------------------------|------------------------------------------------------------------------|
+| `Message` | `String` | The message from the server or the error logged by the SDK. |
+| `Timestamp` | `String` | The timestamp from Adjust's servers. |
+| `Adid` | `String` | A unique device identifier provided by Adjust. |
+| `EventToken` | `String` | The event token |
+| `CallbackId` | `String` | The custom callback ID set on the event object |
+| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
+| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success 콜백 {#success-callbacks-1}
+### Success callbacks \{\#success\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
-
-SDK가 이벤트를 기록할 때 함수를 트리거하는 success 콜백을 설정합니다.
+
-
-
+Set up success callbacks to trigger functions when the SDK records an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -245,8 +228,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -261,15 +243,12 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
-#### 예시 {#example-2}
+#### Example \{\#example\-2\}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
-
-
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -283,8 +262,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -299,8 +277,7 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
-
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -313,23 +290,20 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
-
+
-### Failure 콜백 {#failure-callbacks-1}
+### Failure callbacks \{\#failure\-callbacks\-1\}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
-SDK가 이벤트 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
-
-
-
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -343,8 +317,7 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -359,15 +332,12 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
-
-#### 예시 {#example-3}
+
-예시에서는 콜백 함수 `eventFailure`를 생성하고 이 함수를 **failure** 콜백으로 등록하는 방법을 보여줍니다. 이 함수는 세션 실패 메시지를 로그합니다.
+#### Example \{\#example\-3\}
-
-
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -381,8 +351,7 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -397,5 +366,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
From 481e486d9eea421454cf93402be133610f6f129f Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:08:22 +0200
Subject: [PATCH 07/21] fix: fixed error in the fixTranslations script
---
.github/scripts/fixTranslations.mjs | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/scripts/fixTranslations.mjs b/.github/scripts/fixTranslations.mjs
index d3d096b449..d5a002edb7 100644
--- a/.github/scripts/fixTranslations.mjs
+++ b/.github/scripts/fixTranslations.mjs
@@ -30,7 +30,8 @@ const TAG_LIST = MDX_TAGS.join("|");
// Helper function to split the front matter (YAML) from content
function splitFrontMatter(content) {
- const match = content.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)/);
+ const match = content.match(/^---\r?\n([\s\S]*?)\n---\r?\n([\s\S]*)/);
+
if (match) {
return [match[1], match[2]];
}
@@ -140,7 +141,7 @@ function getModifiedFiles() {
// Format MDX files using Prettier
async function formatMdxFile(file) {
return new Promise((resolve, reject) => {
- exec(`npx prettier --write ${file}`, (error, stdout, stderr) => {
+ exec(`npx prettier --write ../../${file}`, (error, stdout, stderr) => {
if (error) return reject(stderr);
console.log(stdout);
resolve();
@@ -151,7 +152,7 @@ async function formatMdxFile(file) {
// Format MDOC files using the custom formatter
async function formatMdocFile(file) {
return new Promise((resolve, reject) => {
- exec(`node ../../markdoc-formatter.mjs ${file}`, (error, stdout, stderr) => {
+ exec(`node ../../markdoc-formatter.mjs ../../${file}`, (error, stdout, stderr) => {
if (error) return reject(stderr);
console.log(stdout);
resolve();
@@ -162,7 +163,7 @@ async function formatMdocFile(file) {
// Process a single file
async function processFile(file, locale) {
console.log(`Processing ${file} for ${locale}`);
- const originalContent = await fs.readFile(file, "utf-8");
+ const originalContent = await fs.readFile(`../../${file}`, "utf-8");
const [frontMatterYaml, fileContent] = splitFrontMatter(originalContent);
const frontMatter = yaml.load(frontMatterYaml);
@@ -178,7 +179,7 @@ async function processFile(file, locale) {
const finalContent = `---\n${yaml.dump(updatedFrontMatter, { noRefs: true })}---\n${updatedContent}`;
if (finalContent !== originalContent) {
- await fs.writeFile(file, finalContent, "utf-8");
+ await fs.writeFile(`../../${file}`, finalContent, "utf-8");
modifiedFiles.push(file);
// Format the file after writing changes
From ce49c91aa897ec6acf791b3ac7eca7d19446c38e Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:20:36 +0200
Subject: [PATCH 08/21] fix: changed workflow file
---
.github/workflows/fix_translations.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 39c71a8bc5..ebf9a5b26e 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -40,6 +40,9 @@ jobs:
# Commit and push changes if any files were modified
- name: Commit changes
+ uses: actions/checkout@v4
+ with:
+ ref: ${{ github.ref_name }}
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
run: |
git config --global user.name "github-actions"
From 911a9cfc8fba8ff8e8a1ebf7351a3f7b9c3ca589 Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:23:44 +0200
Subject: [PATCH 09/21] fix: fixed workflow file
---
.github/workflows/fix_translations.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index ebf9a5b26e..a6bfb7c365 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -38,11 +38,14 @@ jobs:
id: git-check
run: echo "MODIFIED=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> "$GITHUB_OUTPUT"
- # Commit and push changes if any files were modified
- - name: Commit changes
+ # Need to checkout to the current PR branch
+ - name: Checkout the full PR history
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
+
+ # Commit and push changes if any files were modified
+ - name: Commit changes
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
run: |
git config --global user.name "github-actions"
From 830dd5911685909c189d767ce4015cc26b68db4f Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:30:56 +0200
Subject: [PATCH 10/21] fix: workflow file
---
.github/workflows/fix_translations.yml | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index a6bfb7c365..569fc8ac4b 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -13,7 +13,7 @@ jobs:
- name: Checkout the full PR history
uses: actions/checkout@v4
with:
- fetch-depth: 0
+ ref: ${{ github.head_ref }}
# Set up Node.js environment
- name: Set up Node.js
@@ -38,12 +38,6 @@ jobs:
id: git-check
run: echo "MODIFIED=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> "$GITHUB_OUTPUT"
- # Need to checkout to the current PR branch
- - name: Checkout the full PR history
- uses: actions/checkout@v4
- with:
- ref: ${{ github.ref_name }}
-
# Commit and push changes if any files were modified
- name: Commit changes
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
From 59e9adf280e6c26ab0879cdbf0bf9a6e367eb7ad Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:42:24 +0200
Subject: [PATCH 11/21] fix: workflow
---
.github/workflows/fix_translations.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 569fc8ac4b..4eff2c6e0a 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -14,6 +14,7 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
+ fetch-depth: 0
# Set up Node.js environment
- name: Set up Node.js
From 166144961fc621a688953e38375ecff3e073802b Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:45:48 +0200
Subject: [PATCH 12/21] fix: changed fix script
---
.github/scripts/fixTranslations.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/scripts/fixTranslations.mjs b/.github/scripts/fixTranslations.mjs
index d5a002edb7..44e7d1b6e0 100644
--- a/.github/scripts/fixTranslations.mjs
+++ b/.github/scripts/fixTranslations.mjs
@@ -134,7 +134,7 @@ const modifiedFiles = [];
// Get the list of modified files in the current PR
function getModifiedFiles() {
- const output = execSync("git diff --name-only HEAD~1", { encoding: "utf-8" });
+ const output = execSync("git diff --name-only HEAD~6", { encoding: "utf-8" });
return output.split("\n").filter((file) => file.trim() !== "");
}
From eb0d9f6103ce436baeec7ba1cfc0ca1592abbeca Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:46:52 +0200
Subject: [PATCH 13/21] fix: reverted changes
---
.github/scripts/fixTranslations.mjs | 2 +-
.github/workflows/fix_translations.yml | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/scripts/fixTranslations.mjs b/.github/scripts/fixTranslations.mjs
index 44e7d1b6e0..d5a002edb7 100644
--- a/.github/scripts/fixTranslations.mjs
+++ b/.github/scripts/fixTranslations.mjs
@@ -134,7 +134,7 @@ const modifiedFiles = [];
// Get the list of modified files in the current PR
function getModifiedFiles() {
- const output = execSync("git diff --name-only HEAD~6", { encoding: "utf-8" });
+ const output = execSync("git diff --name-only HEAD~1", { encoding: "utf-8" });
return output.split("\n").filter((file) => file.trim() !== "");
}
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 4eff2c6e0a..39c71a8bc5 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -13,7 +13,6 @@ jobs:
- name: Checkout the full PR history
uses: actions/checkout@v4
with:
- ref: ${{ github.head_ref }}
fetch-depth: 0
# Set up Node.js environment
From 16dd23687750895c2ed2ebec288d7606f3a12258 Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 12:57:21 +0200
Subject: [PATCH 14/21] fix: workflow
---
.github/workflows/fix_translations.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 39c71a8bc5..9b89985eb2 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -13,6 +13,7 @@ jobs:
- name: Checkout the full PR history
uses: actions/checkout@v4
with:
+ ref: ${{ github.ref }}
fetch-depth: 0
# Set up Node.js environment
@@ -45,4 +46,4 @@ jobs:
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git commit -am "Fix translated and formatted files"
- git push
+ git push origin HEAD:${{ github.ref_name }}
From 44278279bec45451cab00755d2b6d2504109d4eb Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 13:19:22 +0200
Subject: [PATCH 15/21] fix: workflow
---
.github/workflows/fix_translations.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 9b89985eb2..c52cc98000 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -45,5 +45,6 @@ jobs:
run: |
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git checkout -B $(echo "${GITHUB_REF#refs/heads/}")
git commit -am "Fix translated and formatted files"
- git push origin HEAD:${{ github.ref_name }}
+ git push origin $(echo "${GITHUB_REF#refs/heads/}")
From ad4b6ea872f81ed849086a9a5d316253b2cdfa26 Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 13:31:11 +0200
Subject: [PATCH 16/21] fix: workflow
---
.github/workflows/fix_translations.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index c52cc98000..8e28294f42 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -43,8 +43,9 @@ jobs:
- name: Commit changes
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
run: |
+ BRANCH_NAME=${GITHUB_REF#refs/heads/}
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- git checkout -B $(echo "${GITHUB_REF#refs/heads/}")
+ git checkout -B "$BRANCH_NAME"
git commit -am "Fix translated and formatted files"
- git push origin $(echo "${GITHUB_REF#refs/heads/}")
+ git push origin "$BRANCH_NAME"
From 95a90af228db0735f69874525fdc5b9c29ca2be9 Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 13:37:59 +0200
Subject: [PATCH 17/21] fix: fixed
---
.github/workflows/fix_translations.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 8e28294f42..ca45792297 100644
--- a/.github/workflows/fix_translations.yml
+++ b/.github/workflows/fix_translations.yml
@@ -43,7 +43,7 @@ jobs:
- name: Commit changes
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
run: |
- BRANCH_NAME=${GITHUB_REF#refs/heads/}
+ BRANCH_NAME=${GITHUB_HEAD_REF}
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git checkout -B "$BRANCH_NAME"
From 720b7768d60f5a7dcd0c51d529a03d9ac7353ee4 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 7 Jan 2025 11:38:55 +0000
Subject: [PATCH 18/21] Fix translated and formatted files
---
.../ja/sdk/android/v4/features/callbacks.mdx | 182 +++++++++++-------
.../ja/sdk/android/v5/features/callbacks.mdx | 161 +++++++++-------
.../ko/sdk/android/v4/features/callbacks.mdx | 182 +++++++++++-------
.../ko/sdk/android/v5/features/callbacks.mdx | 161 +++++++++-------
.../zh/sdk/android/v4/features/callbacks.mdx | 182 +++++++++++-------
.../zh/sdk/android/v5/features/callbacks.mdx | 161 +++++++++-------
6 files changed, 618 insertions(+), 411 deletions(-)
diff --git a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
index 72d6f101df..235763ac13 100644
--- a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/v4/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v5: "/en/sdk/android/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: ja/sdk/android/v4/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v5: /ja/sdk/android/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,7 +77,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -85,12 +89,15 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -104,7 +111,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -119,7 +127,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -132,20 +141,23 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -159,7 +171,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -174,7 +187,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -185,12 +199,15 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -204,7 +221,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -219,7 +237,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -235,17 +254,17 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -254,18 +273,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -279,7 +300,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -294,7 +316,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -305,12 +328,15 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -324,7 +350,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -339,7 +366,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -352,20 +380,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -379,7 +410,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -394,7 +426,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -405,12 +438,15 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -424,7 +460,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -439,7 +476,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailure(eventFailureResponseData) {
@@ -454,5 +492,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
diff --git a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
index b23687e8ea..78037a248a 100644
--- a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v4: "/en/sdk/android/v4/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: ja/sdk/android/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v4: /ja/sdk/android/v4/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,12 +77,15 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -93,7 +99,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -108,20 +115,23 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -135,7 +145,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -150,12 +161,15 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -169,7 +183,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -184,17 +199,17 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -203,18 +218,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -228,7 +245,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -243,12 +261,15 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -262,7 +283,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -277,7 +299,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -290,20 +313,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -317,7 +343,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -332,12 +359,15 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -351,7 +381,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,5 +397,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
diff --git a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
index 72d6f101df..30ab33db2c 100644
--- a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/v4/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v5: "/en/sdk/android/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: ko/sdk/android/v4/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v5: /ko/sdk/android/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,7 +77,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -85,12 +89,15 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -104,7 +111,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -119,7 +127,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -132,20 +141,23 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -159,7 +171,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -174,7 +187,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -185,12 +199,15 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -204,7 +221,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -219,7 +237,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -235,17 +254,17 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -254,18 +273,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -279,7 +300,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -294,7 +316,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -305,12 +328,15 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -324,7 +350,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -339,7 +366,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -352,20 +380,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -379,7 +410,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -394,7 +426,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -405,12 +438,15 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -424,7 +460,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -439,7 +476,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailure(eventFailureResponseData) {
@@ -454,5 +492,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
diff --git a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
index b23687e8ea..85228365dc 100644
--- a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v4: "/en/sdk/android/v4/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: ko/sdk/android/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v4: /ko/sdk/android/v4/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,12 +77,15 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
This example shows how to create a callback function `sessionSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -93,7 +99,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -108,20 +115,23 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -135,7 +145,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -150,12 +161,15 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -169,7 +183,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -184,17 +199,17 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -203,18 +218,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -228,7 +245,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -243,12 +261,15 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -262,7 +283,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -277,7 +299,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -290,20 +313,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -317,7 +343,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -332,12 +359,15 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -351,7 +381,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,5 +397,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
diff --git a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
index f9f04157b8..3e3977c71a 100644
--- a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/v4/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v5: "/en/sdk/android/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: zh/sdk/android/v4/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v5: /zh/sdk/android/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,7 +77,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccessCallback(sessionSuccessResponseData) {}
@@ -85,12 +89,15 @@ adjustConfig.setSessionSuccessCallback(sessionSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -104,7 +111,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -119,7 +127,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.onCreate(config)
```
-
+
+
```js
function sessionSuccess(sessionSuccessResponseData) {
@@ -132,20 +141,23 @@ adjustConfig.setSessionSuccessCallback(sessionSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -159,7 +171,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -174,7 +187,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailureCallback(sessionFailureResponseData) {}
@@ -185,12 +199,15 @@ adjustConfig.setSessionFailureCallback(sessionFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -204,7 +221,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -219,7 +237,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.onCreate(config)
```
-
+
+
```js
function sessionFailure(sessionFailureResponseData) {
@@ -235,17 +254,17 @@ adjustConfig.setSessionFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -254,18 +273,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -279,7 +300,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -294,7 +316,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccessCallback(eventSuccessResponseData) {}
@@ -305,12 +328,15 @@ adjustConfig.setEventSuccessCallback(eventSuccessCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -324,7 +350,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -339,7 +366,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.onCreate(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -352,20 +380,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.onCreate(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -379,7 +410,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -394,7 +426,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailureCallback(eventFailureResponseData) {}
@@ -405,12 +438,15 @@ adjustConfig.setEventFailureCallback(eventFailureCallback);
Adjust.onCreate(adjustConfig);
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -424,7 +460,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -439,7 +476,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.onCreate(config)
```
-
+
+
```js
function eventFailure(eventFailureResponseData) {
@@ -454,5 +492,5 @@ adjustConfig.setEventFailureCallback(sessionFailure);
Adjust.onCreate(adjustConfig);
```
-
-
+
+
diff --git a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
index c050fd6f99..3c234e7021 100644
--- a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
@@ -1,51 +1,53 @@
---
-title: "Send callback information"
-description: "Use these methods to send callback information to Adjust."
-slug: "en/sdk/android/features/callbacks"
-versions:
- -
- label: "v5"
- value: "v5"
- default: true
- -
- label: "v4"
- value: "v4"
-redirects:
- v4: "/en/sdk/android/v4/features/callbacks"
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
+slug: zh/sdk/android/features/callbacks
+versions:
+ - label: v5
+ value: v5
+ default: true
+ - label: v4
+ value: v4
+redirects:
+ v4: /zh/sdk/android/v4/features/callbacks
---
+
Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-
+
+
You must register your callbacks **before** initializing the SDK.
-
-Session callbacks \{\#session\-callbacks\}
-----------------------------------------------
+
+
+## Session callbacks \{\#session\-callbacks\}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Session callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -59,7 +61,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -74,12 +77,15 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\}
+#### Example {#example}
该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -93,7 +99,8 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -108,20 +115,23 @@ config.setOnSessionTrackingSucceededListener(new OnSessionTrackingSucceededListe
Adjust.initSdk(config)
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record a session.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -135,7 +145,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -150,12 +161,15 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-1\}
+#### Example {#example-1}
This example shows how to create a callback function `sessionFailure` and register it as a **failure** callback. The function logs the session failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -169,7 +183,8 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -184,17 +199,17 @@ config.setOnSessionTrackingFailedListener(new OnSessionTrackingFailedListener()
Adjust.initSdk(config)
```
-
+
+
-Event callbacks \{\#event\-callbacks\}
-------------------------------------------
+## Event callbacks \{\#event\-callbacks\}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
Event callbacks have access to a response data object. You can use its properties in your callback function.
-| Property | Data type | Description |
-|----------------|-------------------------------|------------------------------------------------------------------------|
+| Property | Data type | Description |
+| -------------- | ----------------------------- | ---------------------------------------------------------------------- |
| `Message` | `String` | The message from the server or the error logged by the SDK. |
| `Timestamp` | `String` | The timestamp from Adjust's servers. |
| `Adid` | `String` | A unique device identifier provided by Adjust. |
@@ -203,18 +218,20 @@ Event callbacks have access to a response data object. You can use its propertie
| `JsonResponse` | `Dictionary ` | The JSON object with the response from the server. |
| `WillRetry` | `Boolean` | Indicates whether there will be an attempt to resend a failed package. |
-### Success callbacks \{\#success\-callbacks\-1\}
+### Success callbacks {#success-callbacks-1}
-
+
```java
public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener onEventTrackingSucceededListener)
```
-
+
Set up success callbacks to trigger functions when the SDK records an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -228,7 +245,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -243,12 +261,15 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-2\}
+#### Example {#example-2}
This example shows how to create a callback function `eventSuccess` and register it as a **success** callback. The function logs the timestamp at which the SDK recorded the event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -262,7 +283,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -277,7 +299,8 @@ config.setOnEventTrackingSucceededListener(new OnEventTrackingSucceededListener(
Adjust.initSdk(config)
```
-
+
+
```js
function eventSuccess(eventSuccessResponseData) {
@@ -290,20 +313,23 @@ adjustConfig.setEventSuccessCallback(eventSuccess);
Adjust.initSdk(adjustConfig);
```
-
+
+
-### Failure callbacks \{\#failure\-callbacks\-1\}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
```
-
+
Set up failure callbacks to trigger functions when the SDK fails to record an event.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -317,7 +343,8 @@ config.setOnEventTrackingFailedListener (OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -332,12 +359,15 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
-#### Example \{\#example\-3\}
+#### Example {#example-3}
This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
-
+
+
+
```kotlin
val config = AdjustConfig(this, appToken, environment)
@@ -351,7 +381,8 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
+
+
```java
AdjustConfig config = new AdjustConfig(this, appToken, environment);
@@ -366,5 +397,5 @@ config.setOnEventTrackingFailedListener(new OnEventTrackingFailedListener() {
Adjust.initSdk(config)
```
-
-
+
+
From b8ac34956e3d5fde3a153400c5e61c85f254229a Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 14:02:13 +0200
Subject: [PATCH 19/21] fix: lint for the mdoc files
---
markdoc-formatter.mjs | 12 +-
markdoc.config.mjs | 300 +++++++++++++++++++++---------------------
2 files changed, 156 insertions(+), 156 deletions(-)
diff --git a/markdoc-formatter.mjs b/markdoc-formatter.mjs
index be77eab3ad..9b90419190 100644
--- a/markdoc-formatter.mjs
+++ b/markdoc-formatter.mjs
@@ -1,6 +1,6 @@
-import fs from 'fs';
-import path from 'path';
-import Markdoc from '@markdoc/markdoc';
+import fs from "fs";
+import path from "path";
+import Markdoc from "@markdoc/markdoc";
/**
* Format a list of Markdoc (.mdoc) files
@@ -11,20 +11,20 @@ async function formatMarkdocFiles(files) {
const absolutePath = path.resolve(filePath);
// Read the file content
- const source = fs.readFileSync(absolutePath, 'utf-8');
+ const source = fs.readFileSync(absolutePath, "utf-8");
// Parse and format using Markdoc
const ast = Markdoc.parse(source);
let formatted = Markdoc.format(ast);
// Write the formatted content back to the file
- fs.writeFileSync(absolutePath, formatted, 'utf-8');
+ fs.writeFileSync(absolutePath, formatted, "utf-8");
});
}
// Parse command-line arguments and run the formatter
const files = process.argv.slice(2);
formatMarkdocFiles(files).catch((error) => {
- console.error('Error formatting Markdoc files:', error);
+ console.error("Error formatting Markdoc files:", error);
process.exit(1);
});
diff --git a/markdoc.config.mjs b/markdoc.config.mjs
index 89acd13165..2e0064394c 100644
--- a/markdoc.config.mjs
+++ b/markdoc.config.mjs
@@ -1,4 +1,4 @@
-import { defineMarkdocConfig, nodes, component } from '@astrojs/markdoc/config';
+import { defineMarkdocConfig, nodes, component } from "@astrojs/markdoc/config";
import { heading } from ".schema/Heading.markdoc";
import { link } from ".schema/Link.markdoc";
import { paragraph } from ".schema/Paragraph.markdoc";
@@ -7,154 +7,154 @@ import versions from "src/versionMap.json";
import variables from "src/variables.json";
export default defineMarkdocConfig({
- variables: {
- versions,
- variables
- },
- nodes: {
- heading,
- link,
- list,
- paragraph,
- fence: {
- attributes: { ...nodes.fence.attributes },
- render: component("/src/components/SimpleCode.astro"),
- },
- },
- tags: {
- accordion: {
- render: component("src/components/Accordion.astro"),
- attributes: {
- title: {
- type: String,
- required: true,
- },
- badge: {
- type: String,
- required: false,
- }
- }
- },
- callout: {
- render: component("src/components/Callout.astro"),
- attributes: {
- title: {
- type: String,
- required: false,
- },
- type: {
- type: String,
- matches: ["info", "tip", "warning", "important", "seealso", "note"],
- default: "info",
- required: false,
- }
- }
- },
- codeblock: {
- render: component("src/components/CodeBlock.astro"),
- attributes: {
- title: {
- type: String,
- required: false,
- },
- highlight: {
- type: String,
- required: false,
- },
- collapse: {
- type: [String, Array],
- required: false,
- },
- ins: {
- type: String,
- required: false,
- },
- del: {
- type: String,
- required: false,
- },
- useDiffSyntax: {
- type: Boolean,
- required: false,
- default: false
- },
- showLineNumbers: {
- type: Boolean,
- required: false,
- default: true,
- },
- startLineNumber: {
- type: Number,
- required: false,
- }
- }
- },
- deflist: {
- render: component("src/components/DefList.astro"),
- },
- listcolumns: {
- render: component("src/components/ListColumns.astro"),
- },
- minorversion: {
- render: component("src/components/MinorVersion.astro"),
- attributes: {
- added: {
- type: String,
- required: false
- },
- changed: {
- type: String,
- required: false
- },
- removed: {
- type: String,
- required: false
- },
- size: {
- type: String,
- matches: ["small", "medium", "large"],
- required: false,
- default: "medium"
- },
- link: {
- type: String,
- required: false
- }
- }
- },
- tab: {
- render: component("src/components/Tab.astro"),
- attributes: {
- title: {
- type: String,
- required: true,
- },
- sync: {
- type: String,
- required: false,
- },
- icon: {
- type: String,
- required: false,
- }
- }
- },
- tabs: {
- render: component("src/components/Tabs.astro"),
- },
- exampleapp: {
- render: component("src/components/ExampleApp.astro"),
- attributes: {
- permalink: {
- type: String,
- required: true,
- },
- lang: {
- type: String,
- required: false,
- default: "txt",
- }
- }
+ variables: {
+ versions,
+ variables
+ },
+ nodes: {
+ heading,
+ link,
+ list,
+ paragraph,
+ fence: {
+ attributes: { ...nodes.fence.attributes },
+ render: component("/src/components/SimpleCode.astro"),
+ },
+ },
+ tags: {
+ accordion: {
+ render: component("src/components/Accordion.astro"),
+ attributes: {
+ title: {
+ type: String,
+ required: true,
+ },
+ badge: {
+ type: String,
+ required: false,
+ }
}
- }
+ },
+ callout: {
+ render: component("src/components/Callout.astro"),
+ attributes: {
+ title: {
+ type: String,
+ required: false,
+ },
+ type: {
+ type: String,
+ matches: ["info", "tip", "warning", "important", "seealso", "note"],
+ default: "info",
+ required: false,
+ }
+ }
+ },
+ codeblock: {
+ render: component("src/components/CodeBlock.astro"),
+ attributes: {
+ title: {
+ type: String,
+ required: false,
+ },
+ highlight: {
+ type: String,
+ required: false,
+ },
+ collapse: {
+ type: [String, Array],
+ required: false,
+ },
+ ins: {
+ type: String,
+ required: false,
+ },
+ del: {
+ type: String,
+ required: false,
+ },
+ useDiffSyntax: {
+ type: Boolean,
+ required: false,
+ default: false
+ },
+ showLineNumbers: {
+ type: Boolean,
+ required: false,
+ default: true,
+ },
+ startLineNumber: {
+ type: Number,
+ required: false,
+ }
+ }
+ },
+ deflist: {
+ render: component("src/components/DefList.astro"),
+ },
+ listcolumns: {
+ render: component("src/components/ListColumns.astro"),
+ },
+ minorversion: {
+ render: component("src/components/MinorVersion.astro"),
+ attributes: {
+ added: {
+ type: String,
+ required: false
+ },
+ changed: {
+ type: String,
+ required: false
+ },
+ removed: {
+ type: String,
+ required: false
+ },
+ size: {
+ type: String,
+ matches: ["small", "medium", "large"],
+ required: false,
+ default: "medium"
+ },
+ link: {
+ type: String,
+ required: false
+ }
+ }
+ },
+ tab: {
+ render: component("src/components/Tab.astro"),
+ attributes: {
+ title: {
+ type: String,
+ required: true,
+ },
+ sync: {
+ type: String,
+ required: false,
+ },
+ icon: {
+ type: String,
+ required: false,
+ }
+ }
+ },
+ tabs: {
+ render: component("src/components/Tabs.astro"),
+ },
+ exampleapp: {
+ render: component("src/components/ExampleApp.astro"),
+ attributes: {
+ permalink: {
+ type: String,
+ required: true,
+ },
+ lang: {
+ type: String,
+ required: false,
+ default: "txt",
+ }
+ }
+ }
+ }
})
From d3356f5359a567188461085d63f19b44a7144894 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 7 Jan 2025 12:02:58 +0000
Subject: [PATCH 20/21] Fix translated and formatted files
---
src/content/docs/ja/sdk/android/v4/features/callbacks.mdx | 4 ++--
src/content/docs/ja/sdk/android/v5/features/callbacks.mdx | 4 ++--
src/content/docs/ko/sdk/android/v4/features/callbacks.mdx | 4 ++--
src/content/docs/ko/sdk/android/v5/features/callbacks.mdx | 4 ++--
src/content/docs/zh/sdk/android/v4/features/callbacks.mdx | 4 ++--
src/content/docs/zh/sdk/android/v5/features/callbacks.mdx | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
index 235763ac13..3539ec1ae1 100644
--- a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -257,7 +257,7 @@ Adjust.onCreate(adjustConfig);
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
diff --git a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
index 78037a248a..0e69593161 100644
--- a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -202,7 +202,7 @@ Adjust.initSdk(config)
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
diff --git a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
index 30ab33db2c..87e6b5bcde 100644
--- a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -257,7 +257,7 @@ Adjust.onCreate(adjustConfig);
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
diff --git a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
index 85228365dc..3b554e46ec 100644
--- a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -202,7 +202,7 @@ Adjust.initSdk(config)
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
diff --git a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
index 3e3977c71a..7f675ee5b5 100644
--- a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -257,7 +257,7 @@ Adjust.onCreate(adjustConfig);
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
diff --git a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
index 3c234e7021..0d378f17b8 100644
--- a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
@@ -20,7 +20,7 @@ You must register your callbacks **before** initializing the SDK.
-## Session callbacks \{\#session\-callbacks\}
+## Session callbacks {#session-callbacks}
Set up session callbacks to trigger functions when the SDK sends session information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
@@ -202,7 +202,7 @@ Adjust.initSdk(config)
-## Event callbacks \{\#event\-callbacks\}
+## Event callbacks {#event-callbacks}
Set up event callbacks to trigger functions when the SDK sends event information. You can create **success** callbacks and **failure** callbacks. **Success** callbacks trigger when the SDK sends information to Adjust's servers. **Failure** callbacks trigger when the SDK encounters a problem while sending the information.
From c29e40ccff8b259766ca21015c9f11bc4257ea98 Mon Sep 17 00:00:00 2001
From: Bohdan Zavhorodskyi
Date: Tue, 7 Jan 2025 14:23:16 +0200
Subject: [PATCH 21/21] fix: changed markdoc
---
markdoc.config.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/markdoc.config.mjs b/markdoc.config.mjs
index 2e0064394c..d3b6a7ea5b 100644
--- a/markdoc.config.mjs
+++ b/markdoc.config.mjs
@@ -18,7 +18,7 @@ export default defineMarkdocConfig({
paragraph,
fence: {
attributes: { ...nodes.fence.attributes },
- render: component("/src/components/SimpleCode.astro"),
+ render: component("src/components/SimpleCode.astro"),
},
},
tags: {