Drives the map camera from a RouteLayer and exposes the next instruction. Does not draw the route. More...
Inheritance diagram for com.navigine.idl.java.GuidanceCamera:Public Member Functions | |
| abstract void | setMode (GuidanceCameraMode mode) |
| Sets Free / Following / Overview. | |
| abstract GuidanceCameraMode | mode () |
| Current mode. | |
| abstract void | set2DMode (boolean enabled) |
| Forces a top-down camera (tilt 0) in Following and Overview. When false, Following uses a fixed forward tilt. | |
| abstract boolean | is2DMode () |
| Returns true when top-down guidance is enabled. | |
| abstract void | setActive (boolean active) |
| When false, the camera is not moved. Instructions still update. | |
| abstract boolean | isActive () |
| Returns true when this controller may move the camera. | |
| abstract RouteInstruction | instruction () |
| Latest next instruction, or null. | |
| abstract void | addListener (GuidanceListener listener) |
| Adds a listener for mode and instruction changes. | |
| abstract void | removeListener (GuidanceListener listener) |
| Removes a previously added listener. | |
| abstract boolean | isValid () |
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 23 of file GuidanceCamera.java.
|
abstract |
Adds a listener for mode and instruction changes.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Latest next instruction, or null.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Returns true when top-down guidance is enabled.
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Returns true when this controller may move the camera.
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Tells if this GuidanceCamera is valid or not. Any other method (except for this one) called on an invalid GuidanceCamera will throw java.lang.RuntimeException.
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Current mode.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Removes a previously added listener.
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Forces a top-down camera (tilt 0) in Following and Overview. When false, Following uses a fixed forward tilt.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
When false, the camera is not moved. Instructions still update.
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.
|
abstract |
Sets Free / Following / Overview.
Java code snippet:
Kotlin code snippet:
Reimplemented in com.navigine.idl.java.internal.GuidanceCameraBinding.