// Search the mini program// @param name - Keywords in the search name// @param completion - Search results- (void)searchAppletsWithName:(NSString *)namecompletion:(void (^)(NSArray<TMFAppletSearchInfo *> * _Nullable, NSError * _Nullable))completion;// Search the mini program// @param name - Keywords in the search name// @param firstType - Primary category name// @param secondType - Secondary category name// @param completion - Search results- (void)searchAppletsWithName:(NSString * _Nullable )namefirstType:(NSString * _Nullable)firstTypesecondType:(NSString * _Nullable)secondTypecompletion:(void (^)(NSArray<TMFAppletSearchInfo *> * _Nullable, NSError * _Nullable))completion;
[[TMFMiniAppSDKManager sharedInstance] searchAppletsWithName:searchString completion:^(NSArray<TMFAppletSearchInfo *> * _Nonnull result, NSError * _Nonnull aError) {if (error) {// Search failed, or the list is empty} else {// Search successful, list is not empty}}];
[[TMFMiniAppSDKManager sharedInstance] searchAppletsWithName:nil firstType:@"firstType" secondType:nil completion:^(NSArray<TMFAppletSearchInfo *> * _Nullable info, NSError * _Nullable error) {if (error) {// Search failed, or the list is empty} else {// Search successful, list is not empty}}];
[[TMFMiniAppSDKManager sharedInstance] searchAppletsWithName:nil firstType:@"firstType" secondType:@"secondType" completion:^(NSArray<TMFAppletSearchInfo *> * _Nullable info, NSError * _Nullable error) {if (error) {// Search failed, or the list is empty} else {// Search successful, list is not empty}}];
/**Type, i.e., mini programs or mini games- TMAAppTypeApp: Mini programs- TMAAppTypeGame: Mini games*/typedef NS_ENUM(int32_t, TMASearchAppType) {TMASearchAppTypeAll = 0,TMASearchAppTypeApp = 1,TMASearchAppTypeGame = 2,};// Search the mini program// @param name - Keywords in the search name// @param searchType - Search scope, i.e., mini programs or mini games// @param firstType - Primary category name// @param secondType - Secondary category name// @param completion - Search results- (void)searchAppletsWithName:(NSString * _Nullable )namesearchType:(TMASearchAppType)searchTypefirstType:(NSString * _Nullable)firstTypesecondType:(NSString * _Nullable)secondTypecompletion:(void (^)(NSArray<TMFAppletSearchInfo *> * _Nullable, NSError * _Nullable))completion;// Gets the mini program category information// @param existMnpOnly - Whether to return only mini program results// @param searchType - Search scope, i.e., mini programs or mini games// @param completion - The search results by category- (void)getTypeInfoExistMnpOnly:(BOOL)existMnpOnlysearchType:(TMASearchAppType)searchTypeWithCompletion:(void (^)(NSArray<nsdictionary><nsstring *,nsarray *> *> * _Nullable, NSError * _Nullable))completion;