Drives the map camera from a RouteLayer and exposes the next instruction. Does not draw the route. More...
#include <com/navigine/idl/objc/NCGuidanceCamera.h>
Inherits NSObject.
Instance Methods | |
| (void) | - setMode: |
| Sets Free / Following / Overview. | |
| (NCGuidanceCameraMode) | - mode |
| Current mode. | |
| (void) | - set2DMode: |
| Forces a top-down camera (tilt 0) in Following and Overview. When false, Following uses a fixed forward tilt. | |
| (BOOL) | - is2DMode |
| Returns true when top-down guidance is enabled. | |
| (void) | - setActive: |
| When false, the camera is not moved. Instructions still update. | |
| (BOOL) | - isActive |
| Returns true when this controller may move the camera. | |
| (nullable NCRouteInstruction *) | - instruction |
| Latest next instruction, or null. | |
| (void) | - addListener: |
| Adds a listener for mode and instruction changes. | |
| (void) | - removeListener: |
| Removes a previously added listener. | |
Properties | |
| BOOL | valid |
Drives the map camera from a RouteLayer and exposes the next instruction. Does not draw the route.
Overview uses the window focus rect, so set LocationWindow.focusRect for chrome (floor selector, banner) before switching to OVERVIEW.
Referenced from NavigineSdk.
Definition at line 26 of file NCGuidanceCamera.h.
| - (void) addListener: | (nullable id< NCGuidanceListener >) | listener |
Adds a listener for mode and instruction changes.
Swift and Objective-C apps implement NCGuidanceListener and pass self to addListener:, the same way NCRouteLayerListener is attached.
| - (nullable NCRouteInstruction *) instruction |
Latest next instruction, or null.
Swift code snippet:
Objective C code snippet:
| - (BOOL) is2DMode |
Returns true when top-down guidance is enabled.
| - (BOOL) isActive |
Returns true when this controller may move the camera.
| - (NCGuidanceCameraMode) mode |
Current mode.
Swift code snippet:
Objective C code snippet:
| - (void) removeListener: | (nullable id< NCGuidanceListener >) | listener |
Removes a previously added listener.
| - (void) set2DMode: | (BOOL) | enabled |
Forces a top-down camera (tilt 0) in Following and Overview. When false, Following uses a fixed forward tilt.
Swift code snippet:
Objective C code snippet:
| - (void) setActive: | (BOOL) | active |
When false, the camera is not moved. Instructions still update.
| - (void) setMode: | (NCGuidanceCameraMode) | mode |
Sets Free / Following / Overview.
Swift code snippet:
Objective C code snippet:
|
readnonatomicassign |
Tells if this object is valid or not. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now.
Definition at line 131 of file NCGuidanceCamera.h.