SITDirectionsManager
Objective-C
@interface SITDirectionsManager : NSObject <SITDirectionsInterface>
Swift
class SITDirectionsManager : NSObject, SITDirectionsInterface
Central component that provides guidances and routes to travel from a SITLocation or SITPoint to a destination place. Currently only works for route inside indoor areas.
-
Deprecated
Use
-[SITDirectionsManager addDelegate:]
and-[SITDirectionsManager removeDelegate:]
insteadThe object conforming to the SITDirectionsDelegate protocol where updates will be provided
Declaration
Objective-C
@property (nonatomic, weak) id<SITDirectionsDelegate> _Nullable delegate;
Swift
weak var delegate: SITDirectionsDelegate? { get set }
-
Add delegate to listen for directions updates.
Note
you can call-[SITDirectionsManager removeDelegate:]
to stop receiving updates in that specific delegate.Declaration
Objective-C
- (void)addDelegate:(id<SITDirectionsDelegate> _Nonnull)delegate;
Swift
func addDelegate(_ delegate: SITDirectionsDelegate)
-
Remove delegate to listen for directions updates.
Declaration
Objective-C
- (void)removeDelegate:(id<SITDirectionsDelegate> _Nonnull)delegate;
Swift
func removeDelegate(_ delegate: SITDirectionsDelegate)