tencent cloud

All product documents
Chat
Last updated: 2024-10-30 11:02:56
Global
Last updated: 2024-10-30 11:02:56
The following content will show you how to set global customized options.

Switch TUIKit language

API Functionality: Switch TUIKit language.
Method Prototype:
// TUIConfig_Minimalist.h
/**
* Switch the language of TUIKit.
* The currently supported languages are "en", "zh-Hans", and "ar".
*/
+ (void)switchLanguageToTarget:(NSString *)targetLanguage;
Sample code:
// When to call: Before initializing the TUIKit interface.
[TUIConfig_Minimalist switchLanguageToTarget:@"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:
// TUIConfig_Minimalist.h
/**
* Show the toast prompt built in TUIKit.
* The default value is YES.
*/
+ (void)enableToast:(BOOL)enable;
Sample code:
// When to call: Before initializing the TUIKit interface.
[TUIConfig_Minimalist enableToast:NO];
Result:
Enable Toast Prompts
Disable Toast Prompts








Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

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