LinkSDKHelper

Initialize LinkSDK, set network request parameters

LinkSDKHelper

Member Function

Description

Version Introduced

boolean isCAVerify()

get CA Verification

2.0.0

int getConnectTimeout()

get Connect Timeout

2.0.0

int getReadTimeout()

get Read Timeout

2.0.0

int getWriteTimeout()

get Write Timeout

2.0.0

LinkSDKHelper addInterceptor(Interceptor interceptor)

add Interceptor

2.0.0

LanguageTypeEnum getLanguageType()

get Language Type

2.0.0

LinkSDKHelper init(String url,Context context)

Initialization

2.0.0

LinkSDKHelper setUrl(String url)

Set URL

2.0.0

LinkSDKHelper setCAVerify(boolean caVerify)

set CA Verification

2.0.0

LinkSDKHelper setConnectTimeout(int connectTimeout)

set Connect Timeout

2.0.0

LinkSDKHelper setReadTimeout(int readTimeout)

set Read Timeout

2.0.0

LinkSDKHelper setWriteTimeout(int writeTimeout)

set Write Timeout

2.0.0

LinkSDKHelper setInterceptorList(List interceptorList)

Batch Add Interceptor

2.0.0

List getInterceptorList()

get Interceptor List

2.0.0

LinkSDKHelper setLanguage(LanguageTypeEnum type)

set Language Type

2.0.0

String getUrl()

Get URL

2.0.0

Description of Member Function

boolean isCAVerify()

Get CA Verification

Parameter

None

Return

Returned Value

Description

Version Introduced

true

All network connections will verify the CA certificate

2.0.0

false

All network connections will not verify the CA certificate

2.0.0

Exception

None

int getConnectTimeout()

Get Connect Timeout

Parameter

None

Return

Connect Timeout (millisecond precision)

Exception

None

int getReadTimeout()

Get Read Timeout

Parameter

None

Return

Read Timeout (millisecond precision)

Exception

None

int getWriteTimeout()

Get Write Timeout

Parameter

None

Return

Write Timeout (millisecond precision)

Exception

No

LinkSDKHelper addInterceptor(Interceptor interceptor)

Add Interceptor

Parameter

Parameter Name

Type

Description

Note

Version Introduced

interceptor

Interceptor

Interceptor

okhttp Interceptor

2.0.0

Return

Current Object

Exception

None

LanguageTypeEnum getLanguageType()

Get Language Type

Parameter

None

Return

LanguageTypeEnum

Exception

None

LinkSDKHelper init(String url,Context context)

Initialize

Parameter

Parameter Name

Type

Description

Note

Version Introduced

url

String

server address

None

2.0.0

context

Context

Context

None

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setUrl(String url)

Set URL

Parameter

Parameter Name

Type

Description

Note

Version Introduced

url

String

server address

None

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setCAVerify(boolean caVerify)

set CA Verification

Parameter

Parameter Name

Type

Description

Note

Version Introduced

caVerify

boolean

set CA Verification

None

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setConnectTimeout(int connectTimeout)

Set Connect Timeout

Parameter

Parameter Name

Type

Description

Note

Version Introduced

connectTimeout

int

Connect Timeout

millisecond precision

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setReadTimeout(int readTimeout)

Set read timeout

Parameter

Parameter Name

Type

Description

Note

Version Introduced

readTimeout

int

read Timeout

millisecond precision

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setWriteTimeout(int writeTimeout)

Set Write timeout

Parameter

Parameter Name

Type

Description

Note

Version Introduced

writeTimeout

int

write Timeout

millisecond precision

2.0.0

Return

Current Object

Exception

None

LinkSDKHelper setInterceptorList(List interceptorList)

BatchAdd interceptors

Parameter

Parameter Name

Type

Description

Note

Version Introduced

interceptorList

List

Interceptor List

Okhttp Interceptor

2.0.0

Return

Current Object

Exception

None

List getInterceptorList()

Get Interceptor List

Parameter

None

Return

Interceptor List

Exception

None

LinkSDKHelper setLanguage(LanguageTypeEnum type)

Set Language Type

Parameter

Parameter Name

Type

Description

Note

Version Introduced

type

LanguageTypeEnum

Language Type

None

2.0.0

Return

Current Object

Exception

None

String getUrl()

Get URL

Parameter

None

Return

Server Address

Exception

None

最終更新