tencent cloud

Feedback

Last updated: 2024-10-30 10:56:48
    The following content will show you how to set global customized options.

    Switch TUIKit language

    API Functionality: Switch TUIKit language.
    Method Prototype:
    // TUIConfigMinimalist.java
    /**
    * Switch the language of TUIKit.
    * The currently supported languages are "en", "zh", and "ar".
    */
    public static void switchLanguageToTarget(Context context, String targetLanguage)
    Sample code:
    // When to call: In the application initialization phase.
    TUIConfigMinimalist.switchLanguageToTarget(context, "en");
    Result:
    Set to English
    Set to Arabic
    
    
    
    
    
    

    Enable TUIKit Built-in Prompts

    API Functionality: Enable TUIKit built-in toast prompts. If enable, TUIKit components will display the built-in prompts.
    Method Prototype:
    // TUIConfigMinimalist.java
    /**
    * Show the toast prompt built in TUIKit.
    * The default value is true.
    */
    public static void enableToast(boolean enableToast)
    Sample code:
    // When to call: Before initializing the TUIKit interface.
    TUIConfigMinimalist.enableToast(false);
    Result:
    Enable Toast Prompts
    Disable Toast Prompts
    
    
    
    
    
    
    
    
    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