SPSmartLocationManager

Objective-C

@interface SPSmartLocationManager : NSObject

/**
    @return Singleton instance of SPSmartLocationManager
 */
+(instancetype)sharedInstance;

/** unavailable method, do not use */
-(instancetype) init __attribute__((unavailable("call sharedInstance instead")));

#pragma mark - Delegate methods

/**
     Add location listener
*/
-(void)addDelegate:(id<SPSmartLocationManagerDelegate>)delegate;

/**
    Remove location  listener
 */
-(void)removeDelegate:(id<SPSmartLocationManagerDelegate>)delegate;

@end

Swift

class SPSmartLocationManager : NSObject

Undocumented

  • Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;

    Swift

    class func sharedInstance() -> Self

    Return Value

    Singleton instance of SPSmartLocationManager

  • Unavailable

    call sharedInstance instead

    unavailable method, do not use

    Declaration

    Objective-C

    - (nonnull instancetype)init;

Delegate methods