// 搜索小程序// Search mini program// @param name 搜索名称关键词 - search name keyword// @param completion 搜索结果 - search results- (void)searchAppletsWithName:(NSString *)namecompletion:(void (^)(NSArray<TMFAppletSearchInfo *> * _Nullable, NSError * _Nullable))completion;// 搜索小程序// Search mini program// @param name 搜索名称关键词 - search name keyword// @param firstType 一级分类名称 - first level classification name// @param secondType 二级分类名称 - second level classification 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) {//搜索失败,或列表为空} else {//搜索成功,列表不为空}}];
[[TMFMiniAppSDKManager sharedInstance] searchAppletsWithName:nil firstType:@"firstType" secondType:nil completion:^(NSArray<TMFAppletSearchInfo *> * _Nullable info, NSError * _Nullable error) {if (error) {//搜索失败,或列表为空} else {//搜索成功,列表不为空}}];
[[TMFMiniAppSDKManager sharedInstance] searchAppletsWithName:nil firstType:@"firstType" secondType:@"secondType" completion:^(NSArray<TMFAppletSearchInfo *> * _Nullable info, NSError * _Nullable error) {if (error) {//搜索失败,或列表为空} else {//搜索成功,列表不为空}}];
本页内容是否解决了您的问题?