tencent cloud

문서Low-code Interactive Classroom

Mobile Preloading

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-12-12 11:38:00
When the mobile terminal enters the classroom, it needs to load the resources in the class. On a machine with average performance, there may be a short black screen transition page, which affects the experience.
To this end, we provide the ability to load in-class resources in advance, so as to achieve the goal of optimizing the classroom experience. It is recommended to call when entering the application to load the resources in the class in advance.
Note:
Preloading only needs to be called for the first time, and there is no need to call it again after exiting the classroom. The SDK will automatically preload.

Android preload interface

Preload class resources preloadClass

Parameter Description
parameter
type
describe
context
Context
the context
env
String
Environment (fill in the blank)
example:
TCICWebViewManager.getInstance().preloadClass(context, '');

iOS preload interface

parameter
type
describe
env
String
Environment (fill in the blank)
example:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.

    // Enable preload logic
    [TCICClassController preloadClass:nil];

    return YES;
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백