// Search mini programs// Search mini program// @param name Search by name keyword - search name keyword// @param completion Search results - search results- (void)searchAppletsWithName:(NSString *)namecompletion:(void (^)(NSArray<TMFAppletSearchInfo *> * _Nullable, NSError * _Nullable))completion;// Search mini programs// Search mini program// @param name Search by name keyword - search name keyword// @param firstType Primary category name - first level classification name// @param secondType Secondary category name - second level classification name// @param completion Search results - 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 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 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 not empty}}];
Was this page helpful?