Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 667 Bytes

sentlocationdataiterator.md

File metadata and controls

31 lines (25 loc) · 667 Bytes

SENTLocationDataIterator

An iterator that can be used to retrieve locations.

Iterating over the locations may be expensive, so avoid doing it directly on the main application thread.

SWIFT_CLASS_NAMED("LocationDataIterator")
@interface SENTLocationDataIterator : NSObject

SENTLocationDataIterator API

next

Returns the location if available otherwise returns nil.

- (CLLocation * _Nullable)next;


Example code:

SENTLocationDataIterator *locationDataIterator;
CLLocation *location;
while ((location = [locationDataIterator next]) != nil) {
  // location object
}