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.
  searching
	Returns YES if the search is currently being performed.
@property (nonatomic, readonly, getter=isSearching) BOOL searchingDeclared In
MRLocalSearch.h
– 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:.
- (nullable instancetype)initWithRequest:(MRLocalSearchRequest *)requestParameters
request | 
						The request object containing the details of this search.  | 
					
|---|
Declared In
MRLocalSearch.h
– startWithCompletionHandler:
	Starts the asynchronous search operation.
- (void)startWithCompletionHandler:(MRLocalSearchCompletionHandler _Nullable)completionHandlerParameters
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:
responsecontains the search results, ornilif an error occurred.errorcontains the error information if one occured, ornilif the search was successful.
Declared In
MRLocalSearch.h