Package io.rong.imlib

## Class HttpDnsManager

- All Implemented Interfaces:

      public class HttpDnsManager

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static String` | `KEY_DNS_TYPE` |
    `public final static String` | `KEY_RESOLVE_IP` |
    `public final static String` | `KEY_CLIENT_IP` |
    `public final static String` | `KEY_DNS_SERVER_IP` |
    `public final static String` | `KEY_FROM_CACHE` |
    `public final static String` | `KEY_DNS_DELTA_TIME` |
    `public final static int` | `DNS_TYPE_DEFAULT` |
    `public final static int` | `DNS_TYPE_SYSTEM` |
    `public final static int` | `DNS_TYPE_BD` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static HttpDnsManager` | `getInstance()` |
    `void` | `initHttpDns(Context context, NativeObject nativeObject)` |
    `boolean` | `shouldEnableHttpDns(List<String> serverAddressList)` | 根据指定的导航服务器地址判断是否启用 HttpDns
    `HttpDnsOption` | `getHttpDnsIpsOption(Context context, String host)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static HttpDnsManager getInstance()

    - #### initHttpDns

           void initHttpDns(Context context, NativeObject nativeObject)

    - #### shouldEnableHttpDns

           boolean shouldEnableHttpDns(List<String> serverAddressList)

      根据指定的导航服务器地址判断是否启用 HttpDns

      Parameters:
        `serverAddressList` - 连接使用的导航服务器地址

    - #### getHttpDnsIpsOption

           HttpDnsOption getHttpDnsIpsOption(Context context, String host)