tencent cloud

Low-code Interactive Classroom

Política LCIC
Política de privacidade
Contrato de segurança e processamento de dados
Service Agreement
Service Level Agreement
DocumentaçãoLow-code Interactive Classroom

Mobile Preloading

Modo Foco
Tamanho da Fonte
Última atualização: 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;
}


Ajuda e Suporte

Esta página foi útil?

comentários