SITNavigationManager
Objective-C
@interface SITNavigationManager : NSObject <SITNavigationInterface>
Swift
class SITNavigationManager : NSObject, SITNavigationInterface
Default implementation of SITNavigationInterface
-
Call this method to receive a reference to an initialized object of this class
Note
You should always use this method to obtain the manager object and should not try to create instances directly.Declaration
Objective-C
+ (instancetype _Nonnull)sharedManager;
Swift
class func shared() -> Self
Return Value
initialized and ready to use instance of this class
-
Delegate for progress callbacks
Declaration
Objective-C
@property (nonatomic, strong) id<SITNavigationDelegate> _Nullable delegate;
Swift
var delegate: SITNavigationDelegate? { get set }
-
Add delegate to listen for navigation updates.
Note
you can call-[SITNavigationManager removeDelegate:]
if you wish to stop receiving notifications in that specific delegate. If the delegate is going to be released from memory you must call-[SITNavigationManager removeDelegate:]
as well to avoid SitumSDK to retain the delegate in memoryDeclaration
Objective-C
- (void)addDelegate:(id<SITNavigationDelegate> _Nonnull)delegate;
Swift
func addDelegate(_ delegate: SITNavigationDelegate)
-
Remove delegate to listen for navigation updates.
Declaration
Objective-C
- (void)removeDelegate:(id<SITNavigationDelegate> _Nonnull)delegate;
Swift
func removeDelegate(_ delegate: SITNavigationDelegate)