tencent cloud

Tencent Cloud Super App as a Service

Web-View Component Progress Bar

Download
Focus Mode
Font Size
Last updated: 2025-07-04 18:03:43
AI-Translated
Our mini program engine supports superapp in configuring the loading progress bar for web-view components by implementing the TMFMiniAppSDKDelegate protocol's stringWithConfigKey method.
// You can configure whether to display the progress bar when the web-view component loads the page. 1 for hidden and 0 for shown, default is 0 (shown).
OBJC_EXTERN NSString* const TMA_SK_MINIAPP_WebView_Progress_Hide;

// You can configure the color of the progress bar when the web-view component loads a page. The default value is #5BC8F6.
OBJC_EXTERN NSString* const TMA_SK_MINIAPP_WebView_Progress_ProgressTintColor;

// You can configure the background color of the incomplete portion of the progress bar when the web-view component loads the page. The default value is #E4E4E4.
OBJC_EXTERN NSString* const TMA_SK_MINIAPP_WebView_Progress_TrackTintColor;


- (NSString *)stringWithConfigKey:(NSString *)key {
if([key isEqualToString:TMA_SK_MINIAPP_WebView_Progress_Hide]) {
return @"1";
}
return nil;
}



Help and Support

Was this page helpful?

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

Feedback