SetConfig

introduction

Set SDK config

Config includes Http proxy IP and port, Socks5 proxy IP and port, log level, group info/ group member info default option, toggle receiving message read receipt event and so on.

Please set Http proxy IP and port, Socks5 proxy IP and port before Init

Config item can be set solely or together by one call, please check SetConfig

Parameter details

overload1

Parameter name Parameter type Required Description
config SetConfig Required Config
callback ValueCallback< SetConfig > Required Asynchronous callback The format of json_param in the return value is json

overload2

Parameter name Parameter type Required Description
config SetConfig Required Config
callback ValueCallback< string > Required Asynchronous callback The format of json_param in the return value is string

Returned template

TIMResult

The parameters of the callback function after successfully calling the API:
code:int
desc:string
json_param:
'{
  "set_config_callback_log_level" : 2,
  "set_config_is_log_output_console" : true,
  "set_config_log_level" : 2,
  "set_config_proxy_info" : {
      "proxy_info_ip" : "",
      "proxy_info_port" : 0
  },
  "set_config_user_config" : {
      "user_config_group_getinfo_option" : {
        "get_info_option_custom_array" : [],
        "get_info_option_info_flag" : 0xffffffff,
        "get_info_option_role_flag" : 0
      },
      "user_config_group_member_getinfo_option" : {
        "get_info_option_custom_array" : [],
        "get_info_option_info_flag" : 0xffffffff,
        "get_info_option_role_flag" : 0
      },
      "user_config_is_ingore_grouptips_unread" : false,
      "user_config_is_read_receipt" : false,
      "user_config_is_sync_report" : false
  }
}'// For the meaning of Json Key, please refer to SetConfig
user_data:string

Return value details

name type description
TIMResult TIMResult Return value of calling API
code int Result error code: Error Codes
desc string The description of the error.
json_param string Json string. Calling different API will get different Json strings.,For the meaning of Json Key, please refer to SetConfig
user_data string User-defined data transfered by ImSDK without any processing

results matching ""

    No results matching ""