You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: shared/signaling/reference/api-ref/android/_configuration-en.android.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,9 @@ RtmConfig rtmConfig = new RtmConfig.Builder("appid", "userId")
27
27
.protocolType(protocolType)
28
28
.presenceTimeout(300)
29
29
.heartbeatInterval(5)
30
+
.reconnectTimeout(60)
30
31
.useStringUserId(true)
32
+
.ispPolicyEnabled(false)
31
33
.proxyConfig(proxyConfig)
32
34
.logConfig(logConfig)
33
35
.encryptionConfig(encryptionConfig)
@@ -44,7 +46,9 @@ RtmConfig rtmConfig = new RtmConfig.Builder("appid", "userId")
44
46
|`protocolType`| <code>{enumv.protocoltype[props.ag_platform]}</code> | Optional | <code>{enumv.protocoltypeall[props.ag_platform]}</code> | Protocol types for message transmission. By default, Signaling utilizes one-way TCP and one-way UDP protocols for transmission. You have the flexibility to modify the protocol types based on your requirements. See <ahref="#enumvprotocoltypepropsag_platform"><code>{enumv.protocoltype[props.ag_platform]}</code></a>. |
45
47
|`presenceTimeout`| int | Optional |`300`| Presence timeout in seconds, and the value range is [5,300]. This parameter refers the delay imposed by the Signaling server before sending a <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other users once it determines that a client has timed out. If the client reconnects and returns to the channel within the specified time, the Signaling server does not send the <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other participants or delete the temporary user data associated with the user. |
46
48
|`heartbeatInterval`| int | Optional |`5`| Heartbeat interval in seconds, and the value range is [5,1800]. This parameter refers to the time interval at which the client sends heartbeat packets to the Signaling server. If the client fails to send heartbeat packets to the Signaling server within the specified time, the Signaling server determines that the client has timed out. Please note that this parameter affects the PCU count, which in turn affects billing.|
49
+
|`reconnectTimeout`| int | Optional |`0`| SDK connection timeout in seconds. The value range is [15,3600]. The default value is `0` which means no timeout; the SDK keeps retrying until successful. This parameter applies to both the initial login to thee Signaling service and reconnection after disconnection: <ul><li>If the initial login times out, the SDK triggers the `onFailure` callback with `errorInfo` as `LOGIN_TIMEOUT`, and also triggers the `onLinkStateChanged` callback with `currentState` as `FAILED` and `reason` as `LOGIN_TIMEOUT`.</li><li>If reconnection times out, the SDK triggers the `onLinkStateChanged` callback with `currentState` as `FAILED` and `reason` as `RECONNECT_TIMEOUT`.</li></ul> |
47
50
|`useStringUserId`| Bool | Optional |`true`| Whether to use string-type user IDs:<ul><li>`true`: Use string-type user IDs.</li><li>`false`: Use number-type user IDs. The SDK automatically converts string-type user IDs to number-type ones. In this case, the `userId` parameter must be a numeric string (for example, `"123456"`), otherwise initialization fails.</li> </ul>When using Agora RTC and Signaling products at the same time, it is necessary to ensure that the `userId` parameter is consistent. |
51
+
|`ispPolicyEnabled`| Bool | Optional |`false`| Whether to enable the ISP domain policy restriction. In IoT scenarios, devices may be restricted by Internet Service Providers (ISPs). Use this field to set the SDK's connection mode to connect to servers with domains registered with the operator or those in the IP whitelist: <ul><li>`true`: Enable the ISP domain policy restriction. This setting applies to scenarios where IoT devices use IoT SIM cards for network access. The SDK will only connect to servers with domains registered with the operator or those in the IP whitelist.</li><li>`false`: (Default) Disable the ISP domain policy restriction. This setting applies to most common scenarios.</li></ul> |
48
52
|`logConfig`| <code>{config.log[props.ag_platform]}</code> | Optional | - | Log configuration properties such as the log storage size, storage path, and level. |
49
53
|`proxyConfig`| <code>{config.proxy[props.ag_platform]}</code> | Optional | - | When using the Proxy feature of Signaling, you need to configure this parameter. |
50
54
|`encryptionConfig`| <code>{config.encryption[props.ag_platform]}</code> | Optional | - | When using the client-side encryption feature of Signaling, you need to configure this parameter. |
|`protocolType`| <code>{enumv.protocoltype[props.ag_platform]}</code> | Optional | <code>{enumv.protocoltypeall[props.ag_platform]}</code> | Protocol types for message transmission. Signaling by default utilizes one-way TCP and one-way UDP protocols for transmission, but you have the flexibility to modify the protocol types based on your requirements. See <ahref="#enumvprotocoltypepropsag_platform"><code>{enumv.protocoltype[props.ag_platform]}</code></a>. |
46
48
|`presenceTimeout`| uint32_t | Optional |`300`| Presence timeout in seconds, and the value range is [5,300]. This parameter refers the delay imposed by the Signaling server before sending a <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other users once it determines that a client has timed out. If the client reconnects and returns to the channel within the specified time, the Signaling server does not send the <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other participants or delete the temporary user data associated with the user. |
47
49
|`heartbeatInterval`| int | Optional |`5`| Heartbeat interval in seconds, and the value range is [5,1800]. This parameter refers to the time interval at which the client sends heartbeat packets to the Signaling server. If the client fails to send heartbeat packets to the Signaling server within the specified time, the Signaling server determines that the client has timed out. Please note that this parameter affects the PCU count, which in turn affects billing.|
50
+
|`reconnectTimeout`| uint32_t | Optional |`0`| SDK connection timeout in seconds. The value range is [15,3600]. The default value is `0` which means no timeout; the SDK keeps retrying until successful. This parameter applies to both the initial login to the Signaling service and reconnection after disconnection: <ul><li>If the initial login times out, the SDK triggers the `onLoginResult` callback with `errorCode` as `RTM_ERROR_LOGIN_TIMEOUT`, and also triggers the `onLinkStateChanged` callback with `currentState` as `RTM_LINK_STATE_FAILED` and `reason` as `RTM_LINK_CHANGE_REASON_LOGIN_TIMEOUT`.</li><li>If reconnection times out, the SDK triggers the `onLinkStateChanged` callback with `currentState` as `RTM_LINK_STATE_FAILED` and `reason` as `RTM_LINK_CHANGE_REASON_RECONNECT_TIMEOUT`.</li></ul> |
48
51
|`context`| void*| Optional |`NULL`| <ul><li>For Android, it is the context of Android Activity.</li><li>For Windows, it is the window handle of the app. Once set, this parameter enables you to connect or disconnect the video devices while they are powered.</li></ul> |
49
52
|`useStringUserId`| bool | Optional |`true`| Whether to use string-type user IDs:<ul><li>`true`: Use string-type user IDs.</li><li>`false`: Use number-type user IDs. The SDK automatically converts string-type user IDs to number-type ones. In this case, the `userId` parameter must be a numeric string (for example, `"123457"`), otherwise initialization fails.</li> </ul>When using Agora RTC and Signaling products at the same time, it is necessary to ensure that the `userId` parameter is consistent. |
53
+
|`ispPolicyEnabled`| Bool | Optional |`false`| Whether to enable the ISP domain policy restriction. In IoT scenarios, devices may be restricted by Internet Service Providers (ISPs). Use this field to set the SDK's connection mode to connect to servers with domains registered with the operator or those in the IP whitelist: <ul><li>`true`: Enable the ISP domain policy restriction. This setting applies to scenarios where IoT devices use IoT SIM cards for network access. The SDK will only connect to servers with domains registered with the operator or those in the IP whitelist.</li><li>`false`: (Default) Disable the ISP domain policy restriction. This setting applies to most common scenarios.</li></ul> |
|`logConfig`| <code>{config.log[props.ag_platform]}</code> | Optional | - | Log configuration properties such as the log storage size, storage path, and level. |
52
56
|`proxyConfig`| <code>{config.proxy[props.ag_platform]}</code> | Optional | - | When using the Proxy feature of Signaling, you need to configure this parameter. |
| `protocolType` | <code>{enumv.protocoltype[props.ag_platform]}</code> | Optional | <code>{enumv.protocoltypeall[props.ag_platform]}</code> | Protocol types for message transmission. Signaling by default utilizes one-way TCP and one-way UDP protocols for transmission, but you have the flexibility to modify the protocol types based on your requirements. See <a href="#enumvprotocoltypepropsag_platform"><code>{enumv.protocoltype[props.ag_platform]}</code></a>. |
38
59
| `presenceTimeout` | unsigned int | Optional | `300` | Presence timeout in seconds, and the value range is [5,300]. This parameter refers the delay imposed by the Signaling server before sending a <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other users once it determines that a client has timed out. If the client reconnects and returns to the channel within the specified time, the Signaling server does not send the <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other participants or delete the temporary user data associated with the user. |
39
60
| `heartbeatInterval` | unsigned int | Optional | `5` | Heartbeat interval in seconds, and the value range is [5,1800]. This parameter refers to the time interval at which the client sends heartbeat packets to the Signaling server. If the client fails to send heartbeat packets to the Signaling server within the specified time, the Signaling server determines that the client has timed out. Please note that this parameter affects the PCU count, which in turn affects billing.|
61
+
| `reconnectTimeout` | uint32_t | Optional | `0` | SDK connection timeout in seconds. The value range is [15,3600]. The default value is `0` which means no timeout; the SDK keeps retrying until successful. This parameter applies to both the initial login to the Signaling service and reconnection after disconnection: <ul><li>If the initial login times out, the SDK triggers the `completion` callback with `errorInfo` as `AgoraRtmErrorLoginTimeout`, and also triggers the `didReceiveLinkStateEvent` callback with `currentState` as `AgoraRtmLinkStateFailed` and `reasonCode` as `AgoraRtmLinkStateChangeReasonLoginTimeout`.</li><li>If reconnection times out, the SDK triggers the `didReceiveLinkStateEvent` callback with `currentState` as `AgoraRtmLinkStateFailed` and `reasonCode` as `AgoraRtmLinkStateChangeReasonReconnectTimeout`.</li></ul> |
40
62
| `useStringUserId` | BOOL | Optional | `true` | Whether to use string-type user IDs:<ul><li>`true`: Use string-type user IDs.</li><li>`false`: Use number-type user IDs. The SDK automatically converts string-type user IDs to number-type ones. ones. In this case, the `userId` parameter must be a numeric string (for example, `"123456"`), otherwise initialization fails.</li> </ul>When using Agora RTC and Signaling products at the same time, it is necessary to ensure that the userId parameter is consistent. |
63
+
| `ispPolicyEnabled` | Bool | Optional | `false` | Whether to enable the ISP domain policy restriction. In IoT scenarios, devices may be restricted by Internet Service Providers (ISPs). Use this field to set the SDK's connection mode to connect to servers with domains registered with the operator or those in the IP whitelist: <ul><li>`true`: Enable the ISP domain policy restriction. This setting applies to scenarios where IoT devices use IoT SIM cards for network access. The SDK will only connect to servers with domains registered with the operator or those in the IP whitelist.</li><li>`false`: (Default) Disable the ISP domain policy restriction. This setting applies to most common scenarios.</li></ul> |
41
64
| `logConfig` | <code>{config.log[props.ag_platform]}</code> | Optional | - | Log configuration properties such as the log storage size, storage path, and level. |
42
65
| `proxyConfig` | <code>{config.proxy[props.ag_platform]}</code> | Optional | - | When using the Proxy feature of Signaling, you need to configure this parameter. |
43
66
| `encryptionConfig` | <code>{config.encryption[props.ag_platform]}</code> | Optional | - | When using the client-side encryption feature of Signaling, you need to configure this parameter. |
Copy file name to clipboardExpand all lines: shared/signaling/reference/api-ref/swift/_configuration-en.swift.mdx
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,11 @@ AgoraRtmClientConfig(
22
22
appId: String,
23
23
userId: String,
24
24
useStringUserId: Bool,
25
+
ispPolicyEnabled: Bool,
25
26
multipath: Bool,
26
27
presenceTimeout: UInt32,
27
28
heartbeatInterval: UInt32,
29
+
reconnectTimeout: UInt32,
28
30
areaCode: AgoraRtmAreaCode,
29
31
proxyConfig: AgoraRtmProxyConfig?,
30
32
protocolType: AgoraRtmProtocolType,
@@ -44,7 +46,9 @@ AgoraRtmClientConfig(
44
46
|`protocolType`| <code>{enumv.protocoltype[props.ag_platform]}</code> | Optional | <code>{enumv.protocoltypeall[props.ag_platform]}</code> | Protocol types for message transmission. Signaling by default utilizes one-way TCP and one-way UDP protocols for transmission, but you have the flexibility to modify the protocol types based on your requirements. See <ahref="#enumvprotocoltypepropsag_platform"><code>{enumv.protocoltype[props.ag_platform]}</code></a>. |
45
47
|`presenceTimeout`| unsigned int | Optional |`300`| Presence timeout in seconds, and the value range is [5,300]. This parameter refers the delay imposed by the Signaling server before sending a <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other users once it determines that a client has timed out. If the client reconnects and returns to the channel within the specified time, the Signaling server does not send the <code>{enumv.presencetypetimeout[props.ag_platform]}</code> event notification to other participants or delete the temporary user data associated with the user. |
46
48
|`heartbeatInterval`| unsigned int | Optional |`5`| Heartbeat interval in seconds, and the value range is [5,1800]. This parameter refers to the time interval at which the client sends heartbeat packets to the Signaling server. If the client fails to send heartbeat packets to the Signaling server within the specified time, the Signaling server determines that the client has timed out. Please note that this parameter affects the PCU count, which in turn affects billing.|
49
+
|`reconnectTimeout`| uint32_t | Optional |`0`| SDK connection timeout in seconds. The value range is [15,3600]. The default value is `0` which means no timeout; the SDK keeps retrying until successful. This parameter applies to both the initial login to the Signaling service and reconnection after disconnection: <ul><li>If the initial login times out, the SDK triggers the `completion` callback with `errorInfo` as `AgoraRtmErrorLoginTimeout`, and also triggers the `didReceiveLinkStateEvent` callback with `currentState` as `AgoraRtmLinkStateFailed` and `reasonCode` as `AgoraRtmLinkStateChangeReasonLoginTimeout`.</li><li>If reconnection times out, the SDK triggers the `didReceiveLinkStateEvent` callback with `currentState` as `AgoraRtmLinkStateFailed` and `reasonCode` as `AgoraRtmLinkStateChangeReasonReconnectTimeout`.</li></ul> |
47
50
|`useStringUserId`| BOOL | Optional |`true`| Whether to use string-type user IDs:<ul><li>`true`: Use string-type user IDs.</li><li>`false`: Use number-type user IDs. The SDK automatically converts string-type user IDs to number-type ones. ones. In this case, the `userId` parameter must be a numeric string (for example, `"123456"`), otherwise initialization fails.</li> </ul>When using Agora RTC and Signaling products at the same time, it is necessary to ensure that the userId parameter is consistent. |
51
+
|`ispPolicyEnabled`| Bool | Optional |`false`| Whether to enable the ISP domain policy restriction. In IoT scenarios, devices may be restricted by Internet Service Providers (ISPs). Use this field to set the SDK's connection mode to connect to servers with domains registered with the operator or those in the IP whitelist: <ul><li>`true`: Enable the ISP domain policy restriction. This setting applies to scenarios where IoT devices use IoT SIM cards for network access. The SDK will only connect to servers with domains registered with the operator or those in the IP whitelist.</li><li>`false`: (Default) Disable the ISP domain policy restriction. This setting applies to most common scenarios.</li></ul> |
48
52
|`logConfig`| <code>{config.log[props.ag_platform]}</code> | Optional | - | Log configuration properties such as the log storage size, storage path, and level. |
49
53
|`proxyConfig`| <code>{config.proxy[props.ag_platform]}</code> | Optional | - | When using the Proxy feature of Signaling, you need to configure this parameter. |
50
54
|`encryptionConfig`| <code>{config.encryption[props.ag_platform]}</code> | Optional | - | When using the client-side encryption feature of Signaling, you need to configure this parameter. |
0 commit comments