search - How to get users by name using QuickBlox SDK iOS -


i integrating quickblox sdk in ios app.i wanted fetch users username.how done quickblox.what search query made.please suggest me ideas on this.

use case: whenever user enters characters in searchbar have fetch quickblox users name.

you should use method:

+ (qb_nonnull qbrequest *)userswithfullname:(qb_nonnull nsstring *)userfullname                                    page:(qb_nullable qbgeneralresponsepage *)page                            successblock:(qb_nullable void (^)(qbresponse * qb_nonnull_s response, qbgeneralresponsepage * qb_nullable_s page, nsarray qb_generic(qbuuser *) * qb_nullable_s users))successblock                              errorblock:(qb_nullable void (^)(qbresponse * qb_nonnull_s response))errorblock; 

where userfullname string search bar

pagination parameter (for example):

 qbgeneralresponsepage * page = [qbgeneralresponsepage responsepagewithcurrentpage:1 perpage:100] 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -