SKPOITrackerDataSource Protocol Reference

Conforms to NSObject
Declared in SKPOITracker.h

Overview

SKPOITrackerDataSource protocol is used for providing SKTrackablePOI objects to the SKPoiTracker.

– poiTracker:trackablePOIsAroundCoordinate:inRadius:withType: required method

Provides SKTrackablePOI objects to the SKPOITracker. It will be called based on the parameters set to the startPOITrackerWithRadius:refreshMargin: of the SKPOITracker.

- (NSArray *)poiTracker:(SKPOITracker *)poiTracker trackablePOIsAroundCoordinate:(CLLocationCoordinate2D)coordinate inRadius:(NSInteger)radius withType:(NSInteger)poiType

Parameters

poiTracker

The POI tracker.

coordinate

The center coordinate of the area where SKTrackablePOI objects are requested.

radius

The radius of the area where SKTrackablePOI objects are requested, previously set when starting the SKPOITracker.

poiType

The type of the POIs.

Return Value

An array of SKTrackablePOI objects, that can be detected in the requested area.

Discussion

Provides SKTrackablePOI objects to the SKPOITracker. It will be called based on the parameters set to the startPOITrackerWithRadius:refreshMargin: of the SKPOITracker.

Declared In

SKPOITracker.h