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
|
context | Context | the context |
env | String | Environment (fill in the blank) |
example:
TCICWebViewManager.getInstance().preloadClass(context, '');
iOS preload interface
|
env | String | Environment (fill in the blank) |
example:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[TCICClassController preloadClass:nil];
return YES;
}
Was this page helpful?