MRLocalSearch Class Reference
Inherits from | NSObject |
---|---|
Declared in | MRLocalSearch.h |
Overview
Describes a search to be performed on Meridian servers. After configuring the search, you call startWithCompletionHandler:
to asynchonously perform the search.
– initWithRequest:
The designated initializer. The request will be copied during initialization, so any changes made to the request
after this method returns do not affect the request used in startWithCompletionHandler:
.
- (instancetype)initWithRequest:(MRLocalSearchRequest *)request
Parameters
request |
The request object containing the details of this search. |
---|
Declared In
MRLocalSearch.h
– startWithCompletionHandler:
Starts the asynchronous search operation.
- (void)startWithCompletionHandler:(MRLocalSearchCompletionHandler _Nullable)completionHandler
Parameters
completionHandler |
A block to run when the search finishes. |
---|
Discussion
Any calls to startWithCompletionHandler:
while [MRLocalSearch isSearching]
will fail.
The completionHandler
block will be called on the main queue and takes two parameters:
response
contains the search results, ornil
if an error occurred.error
contains the error information if one occured, ornil
if the search was successful.
Declared In
MRLocalSearch.h
searching
Returns YES
if the search is currently being performed.
@property (nonatomic, readonly, getter=isSearching) BOOL searching
Declared In
MRLocalSearch.h