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
}

Last updated