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

    manager

    object that called this method.

    latitude

    current latitude of user location.

    longitude

    current longitude of user location.

    buildingRef

    buildingRef of the building where user currently is. Value is null if user is not in a building.

    floorIndex

    index of the floor where user currently is. Value is 0 if user is outside of a building,

    accuracy

    horizontal accuracy of user location in meters