tencent cloud

Feedback

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;
    }
    
    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