tencent cloud

Tencent Cloud Super App as a Service

Mini Program Navigation Bar Icons

Download
Focus Mode
Font Size
Last updated: 2025-07-04 18:03:43
AI-Translated

Set mini program navigation bar resources

The mini program engine enables you to customize the mini program navigation bar resources in the superapp to replace the default resources. This can be achieved by implementing the stringWithConfigKey method in the TMFMiniAppSDKDelegate protocol. The following keys are currently supported:
Key
Description
TMA_SK_MINIAPP_CloseButton
Close button icon.
TMA_SK_MINIAPP_CloseButtonDark
Close button in dark mode.
TMA_SK_MINIAPP_HomeButton
Home button icon.
TMA_SK_MINIAPP_HomeButtonDark
Home button icon in dark mode.
TMA_SK_MINIAPP_BackButton
Back button icon.
TMA_SK_MINIAPP_BackButtonDark
Back button icon in dark mode.
TMA_SK_MINIAPP_MoreButton
More button icon.
TMA_SK_MINIAPP_MoreButtonDark
More button icon in dark mode.
TMA_SK_MINIAPP_RecordButton
Record button icon.
TMA_SK_MINIAPP_RecordButtonDark
Record button icon in dark mode.
TMA_SK_MINIAPP_MoreBackground
Capsule button background.
TMA_SK_MINIAPP_MoreBackgroundDark
Capsule button background in dark mode.
Example:
- (NSString *)stringWithConfigKey:(NSString *)key {
// Set the Close button in light mode
if([key isEqualToString:TMA_SK_MINIAPP_CloseButton]) {
return [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"white_close-circle.png"];
} else if([key isEqualToString:TMA_SK_MINIAPP_CloseButtonDark]) {
return [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"dark_close-circle.png"];
}
return nil;
}



Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback