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() -> SelfReturn Value
Singleton instance of SPSmartLocationManager
-
Unavailable
call sharedInstance instead
unavailable method, do not use
Declaration
Objective-C
- (nonnull instancetype)init;
-
Add location listener
Declaration
Objective-C
- (void)addDelegate:(nonnull id<SPSmartLocationManagerDelegate>)delegate;Swift
func add(_ delegate: any SPSmartLocationManagerDelegate) -
Remove location listener
Declaration
Objective-C
- (void)removeDelegate:(nonnull id<SPSmartLocationManagerDelegate>)delegate;Swift
func remove(_ delegate: any SPSmartLocationManagerDelegate)
SPSmartLocationManager Class Reference