Navmii SDK  2.2.0
Write yourself a navigation system in iOS
Instance Methods | Class Methods | Properties | List of all members
NMRequest Class Reference

Inherits <NSObject>.

Inherited by NMCountryAndStateRequest, NMGeocodingRequest, NMPoiRequest, and NMReverseGeocodingRequest.

Instance Methods

(nullable instancetype) - NS_UNAVAILABLE
 
(void) - startWithCompletion:
 
(void) - cancel
 

Class Methods

(nullable instancetype) + NS_UNAVAILABLE
 

Properties

NMMapCoordinatessearchLocation
 
NSUInteger maxResultsCount
 
NSString * locale
 
NMRequestStatus status
 

Detailed Description

Base class for all available search requests. You cannot instantiate this class directly. Use NMSearchService to create objects of different search requests.

Method Documentation

◆ cancel()

- (void) cancel

Cancels request operation.

◆ NS_UNAVAILABLE() [1/2]

+ (nullable instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE() [2/2]

- (nullable instancetype) NS_UNAVAILABLE

◆ startWithCompletion:()

- (void) startWithCompletion: (NMRequestCompletion completion

Starts the search and delivers the results to the specified completion handler.

Property Documentation

◆ locale

- (NSString*) locale
readwritenonatomiccopy

Language in which the search query will be processed.

◆ maxResultsCount

- (NSUInteger) maxResultsCount
readwritenonatomicassign

Maximum number of results.

◆ searchLocation

- (NMMapCoordinates*) searchLocation
readwritenonatomicstrong

Center of the area of the search.

◆ status

- (NMRequestStatus) status
readwritenonatomicassign

Current status of the request.