tencent cloud

Tencent Cloud Super App as a Service

Release Notes and Announcements
Announcement: Tencent Cloud Mini Program Platform Renamed to Tencent Cloud Super App as a Service on January 2, 2025
Console Updates
Android SDK Updates
iOS SDK Updates
Flutter SDK Updates
IDE Updates
Base Library Updates
Product Introduction
Overview
Strengths
Use Cases
Purchase Guide
Billing Overview
Pay-As-You-Go Billing
Renewal Guide
Service Suspension Instructions
Getting Started
Plan Management
Overview
Console Account Management
Storage Configuration
Acceleration Configuration
Branding Configurations
Platform Features
Console Login
Users and Permission System
Mini Program Management
Mini Game Management
Superapp Management
Commercialization
Platform Management
User Management
Team Management
Operations Management
Security Center
Code Integration Guide
Getting Demo and SDK
Android
iOS
Flutter
Superapp Server
GUID Generation Rules
Mini Program Development Guide
Mini Program Introduction and Development Environment
Mini Program Code Composition
Guide
Framework
Components
API
Server Backend
JS SDK
Base Library
IDE Operation Instructions
Mini Game Development Guide
Guide
API
Server Backend
Practice Tutorial
Mini Program Login Practical Tutorial
Mini Program Subscription Message Practical Tutorial
Payment Practical Tutorial
Ad Integration Practical Tutorial
Mini Game Subscription Message Practical Tutorial
API Documentation
History
Introduction
API Category
Making API Requests
Operation Management APIs
User Management APIs
Team Management APIs
Sensitive API-Related APIs
Role Management APIs
Platform Management APIs
Other Console APIs
Mini Program or Mini Game APIs
Management-Sensitive APIs
Global Domain Management APIs
Superapp APIs
Data Types
Agreements
Service Level Agreement
Data Processing and Security Agreement
SDK Privacy Policy Module
SDK Data Processing and Security Agreement Module

Extension Button List for the More Menu

PDF
Focus Mode
Font Size
Last updated: 2025-07-04 17:33:28
When a user triggers the tap event for the More button, a list of optional extension buttons will pop up, as illustrated in the default list below:

By overriding the getMoreItems method in the MiniAppProxy class, you can customize the list of extension buttons for the More menu.
API description:
The getMoreItems method's return value represents the customized list of extension buttons.
Parameters MoreItemList.Builder is used to add extension buttons, and the display order of the buttons will match the order in which they are added.
MoreItem’s ID property is used to distinguish between buttons and must be unique.
/**
* Returns the buttons for the capsule's More panel. The IDs for extension buttons must be set within the range of [100, 200]; otherwise, the addition will be invalid.
* Calling environment: Subprocess
*
* @param builder
* @return
*/
public abstract ArrayList<MoreItem> getMoreItems(MoreItemList.Builder builder);

Warning:
The IDs for extension buttons must be set within the range of [100, 200]; otherwise, the addition will be invalid.
Example:
@Override
public ArrayList<MoreItem> getMoreItems(IMiniAppContext miniAppContext, MoreItemList.Builder builder) {
MoreItem item1 = new MoreItem();
// Set the menu ID (required), the ID for extension buttons must be within the range of [100, 200]; otherwise, the addition will be invalid.
item1.id = ShareProxyImpl.OTHER_MORE_ITEM_1;
// Set the menu title (optional)
item1.text = getString(miniAppContext, R.string.applet_mini_proxy_impl_other1);
// Set the menu icon (optional)
item1.drawable = R.mipmap.mini_demo_about;
// Set the visual accessibility description (optional). Defaults to the menu title.
item2.contentDescription = "Visual accessibility description for the menu";
// Listen for tap events
item2.onClickListener = new MoreItem.MoreItemClickListener() {
@Override
public void onClick(IMiniAppContext context, MoreItem item) {
// Handle tap event
}
};

// Adjust the order as needed
builder.addMoreItem(item1)
// Add built-in menu items as needed
.addRestart(getString(miniAppContext, R.string.applet_mini_proxy_impl_restart),
R.mipmap.mini_demo_restart_miniapp)
// Add built-in menu items as needed
.addAbout(getString(miniAppContext, R.string.applet_mini_proxy_impl_about),
R.mipmap.mini_demo_about)
// Add built-in menu items as needed
.addSetting(getString(miniAppContext, R.string.mini_sdk_more_item_setting_0),
R.drawable.mini_sdk_setting,
// Set the visual accessibility description (optional). Defaults to the menu title.
"Mini program settings");
return builder.build();
}

private String getString(IMiniAppContext miniAppContext, int id) {
return miniAppContext.getContext().getString(id);
}





Help and Support

Was this page helpful?

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

Feedback