diff --git a/.github/scripts/fixTranslations.mjs b/.github/scripts/fixTranslations.mjs
index d3d096b44..d5a002edb 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
diff --git a/.github/workflows/fix_translations.yml b/.github/workflows/fix_translations.yml
index 39c71a8bc..ca4579229 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
@@ -42,7 +43,9 @@ jobs:
- name: Commit changes
if: ${{ steps.git-check.outputs.MODIFIED == 'true' }}
run: |
+ 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"
git commit -am "Fix translated and formatted files"
- git push
+ git push origin "$BRANCH_NAME"
diff --git a/markdoc-formatter.mjs b/markdoc-formatter.mjs
index be77eab3a..9b9041919 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 89acd1316..d3b6a7ea5 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",
+ }
+ }
+ }
+ }
})
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 820f5684c..3539ec1ae 100644
--- a/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v4/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: コールバック情報を送信する
-description: Adjustにコールバック情報を送信するには、これらのメソッドを使用してください。
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: ja/sdk/android/v4/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v5: /ja/sdk/android/features/callbacks
---
-SDKがAdjustに情報を送信する時に関数をトリガーするコールバックを設定します。コールバックは **セッション** と **イベント** に対して設定できます。
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-SDKを初期化する **前** にコールバックパラメーターを登録することが必要です。
+You must register your callbacks **before** initializing the SDK.
-## セッションコールバック {#session-callbacks}
+## Session callbacks {#session-callbacks}
-SDKがセッション情報を送信した時に関数をトリガーする、セッションコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、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.
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ---------------------------------------------------- |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイス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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-SDKがセッションを記録した時に関数をトリガーする、successコールバックを設定します。
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -92,9 +92,9 @@ Adjust.onCreate(adjustConfig);
-#### 例 {#example}
+#### Example {#example}
-この例では、コールバック関数`sessionSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがセッションを記録した際にタイムスタンプをログに記録します。
+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.
@@ -144,9 +144,9 @@ Adjust.onCreate(adjustConfig);
-### Failureコールバック {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -154,7 +154,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -202,9 +202,9 @@ 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.
@@ -257,25 +257,25 @@ 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)
@@ -283,7 +283,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-SDKがイベントを記録した時に関数をトリガーする、successコールバックを設定します。
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -331,9 +331,9 @@ Adjust.onCreate(adjustConfig);
-#### 例 {#example-2}
+#### Example {#example-2}
-この例では、コールバック関数`eventSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがイベントを記録した際にタイムスタンプをログに記録します。
+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.
@@ -383,9 +383,9 @@ Adjust.onCreate(adjustConfig);
-### Failureコールバック {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -393,7 +393,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -441,9 +441,9 @@ Adjust.onCreate(adjustConfig);
-#### 例 {#example-3}
+#### Example {#example-3}
-この例では、コールバック関数`eventFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、イベントの失敗メッセージをログに記録します。
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
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 ebd105975..0e6959316 100644
--- a/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ja/sdk/android/v5/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: コールバック情報を送信する
-description: Adjustにコールバック情報を送信するには、これらのメソッドを使用してください。
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: ja/sdk/android/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v4: /ja/sdk/android/v4/features/callbacks
---
-SDKがAdjustに情報を送信する時に関数をトリガーするコールバックを設定します。コールバックは **セッション** と **イベント** に対して設定できます。
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-SDKを初期化する **前** にコールバックパラメーターを登録することが必要です。
+You must register your callbacks **before** initializing the SDK.
-## セッションコールバック {#session-callbacks}
+## Session callbacks {#session-callbacks}
-SDKがセッション情報を送信した時に関数をトリガーする、セッションコールバックを設定します。 **Success** コールバックと **failure** コールバックが作成できます。 **Success** コールバックは、SDKが情報をAdjustのサーバーに送信する時にトリガーします。 **Failure** コールバックは、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.
-| プロパティ | データタイプ | 説明 |
-| -------------- | ----------------------------- | ---------------------------------------------------- |
-| `Message` | `String` | サーバーからのメッセージまたはSDKのエラーログ |
-| `Timestamp` | `String` | Adjustのサーバーからのタイムスタンプ |
-| `Adid` | `String` | Adjustから提供されるユニークデバイス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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-SDKがセッションを記録した時に関数をトリガーする、successコールバックを設定します。
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -80,9 +80,9 @@ Adjust.initSdk(config)
-#### 例 {#example}
+#### Example {#example}
-この例では、コールバック関数`sessionSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがセッションを記録した際にタイムスタンプをログに記録します。
+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.
@@ -118,9 +118,9 @@ Adjust.initSdk(config)
-### Failureコールバック {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -128,7 +128,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -164,9 +164,9 @@ 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.
@@ -202,25 +202,25 @@ 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)
@@ -228,7 +228,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-SDKがイベントを記録した時に関数をトリガーする、successコールバックを設定します。
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -264,9 +264,9 @@ Adjust.initSdk(config)
-#### 例 {#example-2}
+#### Example {#example-2}
-この例では、コールバック関数`eventSuccess`を作成し、 **success** コールバックとして登録する方法を示しています。その関数は、SDKがイベントを記録した際にタイムスタンプをログに記録します。
+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.
@@ -316,9 +316,9 @@ Adjust.initSdk(adjustConfig);
-### Failureコールバック {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -326,7 +326,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-SDKがセッションの記録に失敗した時に関数をトリガーする、failureコールバックを設定します。
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -362,9 +362,9 @@ Adjust.initSdk(config)
-#### 例 {#example-3}
+#### Example {#example-3}
-この例では、コールバック関数`eventFailure`を作成し、 **failure** コールバックとして登録する方法を示します。その関数は、イベントの失敗メッセージをログに記録します。
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
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 f73d94fed..87e6b5bcd 100644
--- a/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v4/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: 콜백 정보 전송
-description: 이 메서드를 사용하여 콜백 정보를 Adjust로 전송합니다.
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: ko/sdk/android/v4/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v5: /ko/sdk/android/features/callbacks
---
-SDK가 Adjust에 정보를 보낼 때 함수를 트리거하는 콜백을 설정합니다. 콜백은 **세션** 및 **이벤트** 에 대해 설정할 수 있습니다.
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-SDK 초기화 **이전** 에 콜백을 등록해야 합니다.
+You must register your callbacks **before** initializing the SDK.
-## 세션 콜백 {#session-callbacks}
+## Session callbacks {#session-callbacks}
-SDK가 세션 정보를 전송할 때 함수를 트리거하는 세션 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 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.
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-SDK가 세션을 기록할 때 함수를 트리거하도록 success 콜백을 설정합니다.
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -92,7 +92,7 @@ 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.
@@ -144,9 +144,9 @@ Adjust.onCreate(adjustConfig);
-### Failure 콜백 {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -154,7 +154,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-SDK가 세션 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -202,7 +202,7 @@ 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.
@@ -257,25 +257,25 @@ 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)
@@ -283,7 +283,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-SDK가 이벤트를 기록할 때 함수를 트리거하는 success 콜백을 설정합니다.
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -331,7 +331,7 @@ 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.
@@ -383,9 +383,9 @@ Adjust.onCreate(adjustConfig);
-### Failure 콜백 {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -393,7 +393,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-SDK가 이벤트 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -441,9 +441,9 @@ Adjust.onCreate(adjustConfig);
-#### 예시 {#example-3}
+#### Example {#example-3}
-예시에서는 콜백 함수 `eventFailure`를 생성하고 이 함수를 **failure** 콜백으로 등록하는 방법을 보여줍니다. 이 함수는 세션 실패 메시지를 로그합니다.
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
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 8dfb14283..3b554e46e 100644
--- a/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/ko/sdk/android/v5/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: 콜백 정보 전송
-description: 이 메서드를 사용하여 콜백 정보를 Adjust로 전송합니다.
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: ko/sdk/android/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v4: /ko/sdk/android/v4/features/callbacks
---
-SDK가 Adjust에 정보를 보낼 때 함수를 트리거하는 콜백을 설정합니다. 콜백은 **세션** 및 **이벤트** 에 대해 설정할 수 있습니다.
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-SDK 초기화 **이전** 에 콜백을 등록해야 합니다.
+You must register your callbacks **before** initializing the SDK.
-## 세션 콜백 {#session-callbacks}
+## Session callbacks {#session-callbacks}
-SDK가 세션 정보를 전송할 때 함수를 트리거하는 세션 콜백을 설정합니다. **success** 콜백과 **failure** 콜백을 생성할 수 있습니다. **Success** 콜백은 SDK가 Adjust 서버로 정보를 전송할 때 트리거합니다. **Failure** 콜백은 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.
-| 속성 | 데이터 유형 | 설명 |
-| -------------- | ----------------------------- | ---------------------------------------- |
-| `Message` | `String` | 서버로부터의 메시지나 SDK가 로깅한 오류. |
-| `Timestamp` | `String` | Adjust 서버의 타임스탬프. |
-| `Adid` | `String` | Adjust가 제공한 고유한 디바이스 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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-SDK가 세션을 기록할 때 함수를 트리거하도록 success 콜백을 설정합니다.
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -80,7 +80,7 @@ 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.
@@ -118,9 +118,9 @@ Adjust.initSdk(config)
-### Failure 콜백 {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -128,7 +128,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-SDK가 세션 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -164,7 +164,7 @@ 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.
@@ -202,25 +202,25 @@ 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)
@@ -228,7 +228,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-SDK가 이벤트를 기록할 때 함수를 트리거하는 success 콜백을 설정합니다.
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -264,7 +264,7 @@ 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.
@@ -316,9 +316,9 @@ Adjust.initSdk(adjustConfig);
-### Failure 콜백 {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -326,7 +326,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-SDK가 이벤트 기록에 실패했을 때 함수를 트리거하는 failure 콜백을 설정합니다.
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -362,9 +362,9 @@ Adjust.initSdk(config)
-#### 예시 {#example-3}
+#### Example {#example-3}
-예시에서는 콜백 함수 `eventFailure`를 생성하고 이 함수를 **failure** 콜백으로 등록하는 방법을 보여줍니다. 이 함수는 세션 실패 메시지를 로그합니다.
+This example shows how to create a callback function `eventFailure` and register it as a **failure** callback. The function logs the event failure message.
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 36e05e28a..7f675ee5b 100644
--- a/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v4/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: 发送回传信息
-description: 使用这些方法向 Adjust 发送回传信息。
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: zh/sdk/android/v4/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v5: /zh/sdk/android/features/callbacks
---
-设置回传来在 SDK 向 Adjust 发送信息时触发函数。您可以针对 **会话** 和 **事件** 设置回传。
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-您必须在初始化 SDK **之前** 注册回传。
+You must register your callbacks **before** initializing the SDK.
-## 会话回传 {#session-callbacks}
+## Session callbacks {#session-callbacks}
-设置会话回传来在 SDK 向 Adjust 发送会话信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+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.
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-设置 success 回传来在 SDK 记录到会话时触发函数。
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -92,9 +92,9 @@ 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.
+该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
@@ -144,9 +144,9 @@ Adjust.onCreate(adjustConfig);
-### failure 回传 {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -154,7 +154,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-设置 failure 回传来在 SDK 未能记录到会话时触发函数。
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -202,7 +202,7 @@ 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.
@@ -257,25 +257,25 @@ 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)
@@ -283,7 +283,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-设置 success 回传来在 SDK 记录到事件时触发函数。
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -331,7 +331,7 @@ 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.
@@ -383,9 +383,9 @@ Adjust.onCreate(adjustConfig);
-### failure 回传 {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -393,7 +393,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-设置 failure 回传来在 SDK 未能记录到事件时触发函数。
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -441,7 +441,7 @@ 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.
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 b2463c27c..0d378f17b 100644
--- a/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
+++ b/src/content/docs/zh/sdk/android/v5/features/callbacks.mdx
@@ -1,6 +1,6 @@
---
-title: 发送回传信息
-description: 使用这些方法向 Adjust 发送回传信息。
+title: Send callback information
+description: Use these methods to send callback information to Adjust.
slug: zh/sdk/android/features/callbacks
versions:
- label: v5
@@ -12,31 +12,31 @@ redirects:
v4: /zh/sdk/android/v4/features/callbacks
---
-设置回传来在 SDK 向 Adjust 发送信息时触发函数。您可以针对 **会话** 和 **事件** 设置回传。
+Set up callbacks to trigger functions when the SDK sends information to Adjust. You can set up callbacks for **sessions** and **events** .
-您必须在初始化 SDK **之前** 注册回传。
+You must register your callbacks **before** initializing the SDK.
-## 会话回传 {#session-callbacks}
+## Session callbacks {#session-callbacks}
-设置会话回传来在 SDK 向 Adjust 发送会话信息时触发函数。您可以创建 **success** 回传和 **failure** 回传。SDK 向 Adjust 服务器发送信息时会触发 **success** 回传。SDK 向 Adjust 发送信息时出现问题会触发 **failure** 回传。
+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.
-| 属性 | 数据类型 | 描述 |
-| -------------- | ----------------------------- | ----------------------------------- |
-| `Message` | `String` | 服务器信息或者 SDK 记录的错误信息。 |
-| `Timestamp` | `String` | 来自 Adjust 服务器的时间戳。 |
-| `Adid` | `String` | 由 Adjust 提供的设备唯一标识符。 |
-| `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. |
+| `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}
+### Success callbacks {#success-callbacks}
-
+
```java
public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededListener onSessionTrackingSucceededListener)
@@ -44,7 +44,7 @@ public void setOnSessionTrackingSucceededListener(OnSessionTrackingSucceededList
-设置 success 回传来在 SDK 记录到会话时触发函数。
+Set up success callbacks to trigger functions when the SDK records a session.
@@ -80,9 +80,9 @@ 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.
+该示例展示了如何创建回传函数 `sessionSuccess`,并将其注册为 **success** 回传。该函数会记录 SDK 记录到会话的时间戳。
@@ -118,9 +118,9 @@ Adjust.initSdk(config)
-### failure 回传 {#failure-callbacks}
+### Failure callbacks {#failure-callbacks}
-
+
```java
public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener onSessionTrackingFailedListener)
@@ -128,7 +128,7 @@ public void setOnSessionTrackingFailedListener(OnSessionTrackingFailedListener o
-设置 failure 回传来在 SDK 未能记录到会话时触发函数。
+Set up failure callbacks to trigger functions when the SDK fails to record a session.
@@ -164,7 +164,7 @@ 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.
@@ -202,25 +202,25 @@ 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)
@@ -228,7 +228,7 @@ public void setOnEventTrackingSucceededListener(OnEventTrackingSucceededListener
-设置 success 回传来在 SDK 记录到事件时触发函数。
+Set up success callbacks to trigger functions when the SDK records an event.
@@ -264,7 +264,7 @@ 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.
@@ -316,9 +316,9 @@ Adjust.initSdk(adjustConfig);
-### failure 回传 {#failure-callbacks-1}
+### Failure callbacks {#failure-callbacks-1}
-
+
```java
public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEventTrackingFailedListener)
@@ -326,7 +326,7 @@ public void setOnEventTrackingFailedListener(OnEventTrackingFailedListener onEve
-设置 failure 回传来在 SDK 未能记录到事件时触发函数。
+Set up failure callbacks to trigger functions when the SDK fails to record an event.
@@ -362,7 +362,7 @@ 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.