tencent cloud

$0 14-Day TrialExperience EdgeOne for acceleration and security protection!

Feedback

Low-code Interactive Classroom

Mobile Preloading

Last updated: 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;
}


Catalog

In The Article

Mobile Preloading

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon