SPSmartLocationManagerDelegate
Objective-C
@protocol SPSmartLocationManagerDelegate <NSObject>
@optional
/**
Called when user's location changes.
@param manager object that called this method.
@param latitude current latitude of user location.
@param longitude current longitude of user location.
@param buildingRef buildingRef of the building where user currently is. Value is null if user is not in a building.
@param floorIndex index of the floor where user currently is. Value is 0 if user is outside of a building,
@param accuracy horizontal accuracy of user location in meters
*/
-(void)spSmartLocationManager:(SPSmartLocationManager*)manager onLocationChanged:(double)latitude longitude:(double)longitude buildingRef:(nullable NSString*)buildingRef floorIndex:(NSInteger)floorIndex accuracyM:(double)accuracy;
@end
Swift
protocol SPSmartLocationManagerDelegate : NSObjectProtocol
Undocumented
-
Called when user’s location changes.
Declaration
Objective-C
- (void)spSmartLocationManager:(nonnull SPSmartLocationManager *)manager onLocationChanged:(double)latitude longitude:(double)longitude buildingRef:(nullable NSString *)buildingRef floorIndex:(NSInteger)floorIndex accuracyM:(double)accuracy;Swift
optional func spSmartLocationManager(_ manager: SPSmartLocationManager, onLocationChanged latitude: Double, longitude: Double, buildingRef: String?, floorIndex: Int, accuracyM accuracy: Double)Parameters
managerobject that called this method.
latitudecurrent latitude of user location.
longitudecurrent longitude of user location.
buildingRefbuildingRef of the building where user currently is. Value is null if user is not in a building.
floorIndexindex of the floor where user currently is. Value is 0 if user is outside of a building,
accuracyhorizontal accuracy of user location in meters
SPSmartLocationManagerDelegate Protocol Reference