- cacheVerifyTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The time that sonic begin verify local data
- callback(String) - 接口 中的方法com.tencent.sonic.sdk.SonicDiffDataCallback
-
Called when sonic processes the local data and the server data.
- callbackWeakRefList - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- canDestroy() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- cleanCache() - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- clearHistory() - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
We add this method to decoupling webview since some application may use x5 webview or others.
- clearSessionData() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- clearSessionData() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- CLIENT_MSG_NOTIFY_RESULT - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message to record sonic mode.
- CLIENT_MSG_ON_WEB_READY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message of page ready, its means page want to get the latest session data.
- clientIsReady - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Whether the client is ready.
- clientReady() - 类 中的方法com.tencent.sonic.sdk.SonicSessionClient
-
Notify client is ready to accept data
- com.tencent.sonic.sdk - 程序包 com.tencent.sonic.sdk
-
- COMMON_MSG_BEGIN - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
- COMMON_MSG_END - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
- config - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- connect() - 类 中的方法com.tencent.sonic.sdk.SonicSessionConnection
-
Opens a communications link to the resource referenced by Sonic session
- connectionConnectTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The http(s) connectURLConnection.connect()
response time
- connectionFlowFinishTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
Sonic flow end time
- connectionFlowStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The time sonic initiate the http(s) request
- connectionRespondTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
The http(s) getResponseCodeHttpURLConnection.getResponseCode()
response time
- context - 类 中的变量com.tencent.sonic.sdk.SonicRuntime
-
A context for this runtime, it's expected to be ApplicationContext
- createdTime - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The time of current session created.
- createInstance(SonicRuntime, SonicConfig) - 类 中的静态方法com.tencent.sonic.sdk.SonicEngine
-
Create SonicEngine instance.
- createSession(String, SonicSessionConfig) - 类 中的方法com.tencent.sonic.sdk.SonicEngine
-
- createWebResourceResponse(String, String, InputStream, Map<String, String>) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
We add this method to decoupling webview since some application may use x5 webview or others.
- currUrl - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The current url.
- CUSTOM_HEAD_FILED_CACHE_OFFLINE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:cache-offline.
- CUSTOM_HEAD_FILED_DNS_PREFETCH - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:dns-prefetch.
- CUSTOM_HEAD_FILED_ETAG - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:eTag.
- CUSTOM_HEAD_FILED_TEMPLATE_CHANGE - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:template_change.
- CUSTOM_HEAD_FILED_TEMPLATE_TAG - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP header:template_tag.
- handleFlow_304() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleFlow_304() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_304() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- handleFlow_Connection(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Initiate a network request to obtain server data.
- handleFlow_DataUpdate() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic obtains the difference data between the server and the local
data first,then sonic will build the template and server data into html,
then send a CLIENT_CORE_MSG_DATA_UPDATE
message.
- handleFlow_DataUpdate() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_DataUpdate() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic obtains the difference data between the server and the local data first,then sonic will
build the template and server data into html.If client did not load url before, the new html
will be encapsulated as an inputStreamByteArrayInputStream
,When client initiates
a resource interception, sonic provides the inputStream to the kernel.
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic will always read the new data from the server until the client
initiates a resource interception.
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_FirstLoad() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic will always read the new data from the server until client initiates a resource interception
If the server data is not read finished sonic will split the read and unread data into a
bridgedStreamSonicSessionStream
, otherwise all the read data will be encapsulated as an
inputStreamByteArrayInputStream
.
- handleFlow_HttpError(int) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleFlow_HttpError(int) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_ServiceUnavailable() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleFlow_ServiceUnavailable() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_TemplateChange() - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
In this case sonic will always read the new data from the server until the local page finish.
- handleFlow_TemplateChange() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleFlow_TemplateChange() - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
Sonic will always read the new data from the server until the local page finish.
- handleLocalHtml(String) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleLocalHtml(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- handleLocalHtml(String) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.QuickSonicSession
-
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Subclasses must implement this to receive messages.
- handleMessage(Message) - 类 中的方法com.tencent.sonic.sdk.StandardSonicSession
-
- HTTP_HEAD_CSP - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:Content-Security-Policy.
- HTTP_HEAD_CSP_REPORT_ONLY - 类 中的静态变量com.tencent.sonic.sdk.SonicSessionConnection
-
HTTP Header:Content-Security-Policy-Report-Only.
- saveHeaders(String, Map<String, List<String>>) - 类 中的方法com.tencent.sonic.sdk.SonicHeadersProvider
-
- saveHeaders(SonicSessionConnection) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Save the header information to the headersProvider.
- separateAndSaveCache(String) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
- session - 类 中的变量com.tencent.sonic.sdk.SonicSessionConnection
-
SonicSession Object used by SonicSessionConnection.
- SESSION_MODE_DEFAULT - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSession mode : StandardSonicSession
- SESSION_MODE_QUICK - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSession mode : QuickSonicSession
- SESSION_MSG_FORCE_DESTROY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
The message of forced to destroy the session.
- sessionClient - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- sessionConnection - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- SessionConnectionDefaultImpl(SonicSession, Intent) - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnection.SessionConnectionDefaultImpl
-
- sessionState - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Session state, include STATE_NONE
, STATE_RUNNING
,
STATE_READY
and STATE_DESTROY
.
- setAcceptDiff(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setAutoStartWhenCreate(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCacheInterceptor(SonicCacheInterceptor) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCacheVerifyWithSha1(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setConnectionIntercepter(SonicSessionConnectionInterceptor) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setConnectTimeoutMillis(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setCookie(String, List<String>) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Det cookies to webview after session connection response with cookies in it's headers.
- setIsAccountRelated(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setMaxPreloadSessionCount(int) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setPreloadSessionExpiredTimeMillis(long) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReadBufferSize(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReadTimeoutMillis(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setReloadInBadNetwork(boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setResult(int, int, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Record the sonic mode, notify the result to page if necessary.
- setSessionMode(int) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- setUnavailableTime(long) - 类 中的方法com.tencent.sonic.sdk.SonicConfig.Builder
-
- setUseSonicCacheInBadNetworkToastMessage(String) - 类 中的方法com.tencent.sonic.sdk.SonicSessionConfig.Builder
-
- shouldLog(int) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Logger function
- showToast(CharSequence, int) - 类 中的方法com.tencent.sonic.sdk.SonicRuntime
-
Show toast
- sId - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- sNextSessionLogId - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Log id
- SONIC_PARAMETER_NAME_PREFIX - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
Sonic parameter prefix
- SONIC_REMAIN_PARAMETER_NAMES - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
This parameter in url will be as part of session id,and it is separated by SONIC_REMAIN_PARAMETER_SPLIT_CHAR.
- SONIC_REMAIN_PARAMETER_SPLIT_CHAR - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
- SONIC_RESULT_CODE_DATA_UPDATE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : data update.
- SONIC_RESULT_CODE_FIRST_LOAD - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : first load.
- SONIC_RESULT_CODE_HIT_CACHE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : 304.
- SONIC_RESULT_CODE_TEMPLATE_CHANGE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : template change.
- SONIC_RESULT_CODE_UNKNOWN - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Sonic mode : unknown.
- SONIC_SDK_LOG_PREFIX - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSDK log prefix
- SONIC_URL_PARAM_SESSION_ID - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
- SONIC_VERSION_NUM - 类 中的静态变量com.tencent.sonic.sdk.SonicConstants
-
SonicSDK version
- SonicCacheInterceptor - com.tencent.sonic.sdk中的类
-
SonicCacheInterceptor
provide local data.
- SonicCacheInterceptor(SonicCacheInterceptor) - 类 的构造器com.tencent.sonic.sdk.SonicCacheInterceptor
-
- SonicConfig - com.tencent.sonic.sdk中的类
-
Sonic global config
- SonicConfig.Builder - com.tencent.sonic.sdk中的类
-
Builder for SonicConfig
- SonicConstants - com.tencent.sonic.sdk中的类
-
Sonic constants
- SonicConstants() - 类 的构造器com.tencent.sonic.sdk.SonicConstants
-
- SonicDiffDataCallback - com.tencent.sonic.sdk中的接口
-
This interface is used to call the difference data between local and server data
to the client.
- SonicEngine - com.tencent.sonic.sdk中的类
-
Interacts with the overall SonicSessions running in the system.
- sonicFlowStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
- SonicHeadersProvider - com.tencent.sonic.sdk中的类
-
Interface for saving and receiving Sonic headers
- SonicHeadersProvider() - 类 的构造器com.tencent.sonic.sdk.SonicHeadersProvider
-
- SonicRuntime - com.tencent.sonic.sdk中的类
-
SonicRuntime
is a class which interacts with the overall running information in the system,
including Context, UA, ID (which is the unique identification for the saved data) and other information.
- SonicRuntime(Context) - 类 的构造器com.tencent.sonic.sdk.SonicRuntime
-
- SonicSession - com.tencent.sonic.sdk中的类
-
In Sonic, SonicSession
s are used to manage the entire process,include
obtain the latest data from the server, provide local and latest
data to kernel, separate html to template and data, build template
and data to html and so on.
- SonicSession.Callback - com.tencent.sonic.sdk中的接口
-
The interface is used to inform the listeners that the state of the
session has changed.
- SonicSessionClient - com.tencent.sonic.sdk中的类
-
SonicSessionClient
is a thin API class that delegates its public API to
a backend WebView class instance, such as loadUrl and loadDataWithBaseUrl.
- SonicSessionClient() - 类 的构造器com.tencent.sonic.sdk.SonicSessionClient
-
- SonicSessionConfig - com.tencent.sonic.sdk中的类
-
The sonicSession configurations.
- SonicSessionConfig.Builder - com.tencent.sonic.sdk中的类
-
Builder for SonicSessionConfig
- SonicSessionConnection - com.tencent.sonic.sdk中的类
-
The abstract class SonicSessionConnection
is the superclass
of all classes that represent a communications link between the
application and a URL.
- SonicSessionConnection(SonicSession, Intent) - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnection
-
Constructor
- SonicSessionConnection.ResponseDataTuple - com.tencent.sonic.sdk中的类
-
A holder caches information about the input and output stream .
- SonicSessionConnection.SessionConnectionDefaultImpl - com.tencent.sonic.sdk中的类
-
- SonicSessionConnectionInterceptor - com.tencent.sonic.sdk中的类
-
SonicSessionConnectionInterceptor
provide a SonicSessionConnection
.
- SonicSessionConnectionInterceptor() - 类 的构造器com.tencent.sonic.sdk.SonicSessionConnectionInterceptor
-
- SonicSessionStatistics - com.tencent.sonic.sdk中的类
-
The Statistic model specifies the data models which are requried to be used to provide
the performance data described by the specific attributes in a SonicSession.
- SonicSessionStatistics() - 类 的构造器com.tencent.sonic.sdk.SonicSessionStatistics
-
- sonicStartTime - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
- srcResultCode - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
Sonic original mode.
- srcUrl - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
The original url.
- srcUrl - 类 中的变量com.tencent.sonic.sdk.SonicSessionStatistics
-
Original url
- StandardSonicSession - com.tencent.sonic.sdk中的类
-
A subclass of SonicSession.
- start() - 类 中的方法com.tencent.sonic.sdk.SonicSession
-
Start the sonic process
- STATE_DESTROY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : destroyed.
- STATE_NONE - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : original.
- STATE_READY - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : ready.
- STATE_RUNNING - 类 中的静态变量com.tencent.sonic.sdk.SonicSession
-
Session state : running.
- statistics - 类 中的变量com.tencent.sonic.sdk.SonicSession
-
- switchState(int, int, boolean) - 类 中的方法com.tencent.sonic.sdk.SonicSession
-