Definition
public interface IHttpDnsDepend
Purpose
Defines the information required to initialize the SDK.
Method
Pass Android's Context to the SDK. You need to override this method and include Context in the return value. For example:
public Context getContext() {
String getHttpdnsAccountID()
Pass the Service ID to the SDK.
You need to override this method and return the Service ID in the return value. For example: public String getHttpdnsAccountID() {
String getHttpdnsSecretKey()
Pass the Secret Key to the SDK. You need to override this method and include Service Key in the return value. For example: public String getHttpdnsSecretKey() {
String[] getPreloadDomains();
List of domain names to be pre-parsed by the specified SDK. When the SDK is initialized or the application connects to another network, the SDK requests the results of pre-resolving domain names in advance. This method performs a full update on the list of pre-parsed domain names. To skip pre-parsing domain name configuration, pass null.
You need to override the method and include the parameters in the return value. For example:
public String[] getPreloadDomains() {
return new String[]{"www.bytedance.com"};
To update the pre-parsed domain name list after SDK initialization, call the setPreloadHosts method. Set application ID.
You can create an application in the console and pass the application's application ID to getAppId to obtain its return value. This allows you to distinguish between multiple applications under the same VolcanoEngine account and configure custom parsing for each application individually. See Application management for more information. If you do not need to set the App ID, you can pass null.
You need to override this method and include the parameters in the return value. For example:
public String getAppId() {
isTemporaryAuthentication
boolean isTemporaryAuthentication();
tip
This method has been deprecated.
Configure whether the SDK uses temporary Key authentication.
getHttpdnsTemporaryKeyTimeStamp
long getHttpdnsTemporaryKeyTimeStamp();
tip
This method has been deprecated.
Pass the temporary Key timestamp to the SDK.
Related methods