Ready-to-use navigation view with built-in UI: “follow me” toggle and user location layer. zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (location, sublocation, camera) and keeps widgets in sync. Use NCDefaultNavigationViewConfig to customize; config can be updated at runtime via the config property. More...
#include <com/navigine/idl/objc/NCDefaultNavigationView.h>
Inheritance diagram for NCDefaultNavigationView:Instance Methods | |
| (id) | - initWithCoder: |
| Initializes a location view from Interface Builder / storyboard. | |
| (id) | - initWithFrame: |
| Creates a location view with the specified frame. | |
| (id) | - initWithFrame:config: |
| Creates a location view with the specified frame and view config (visibility only). | |
| (id) | - initWithFrame:viewConfig:zoomConfig:followMeConfig:floorConfig: |
| Creates a location view with the specified frame and configs. Widget configs are passed directly; nil = use defaults. | |
Properties | |
| NCDefaultNavigationViewConfig * | viewConfig |
| View config (visibility). Can be changed at runtime. | |
| NCZoomControlsConfig * | zoomControlsConfig |
| Zoom controls config. Can be changed at runtime. | |
| NCFollowMeButtonConfig * | followMeButtonConfig |
| Follow me button config. Can be changed at runtime. | |
| NCFloorSelectorViewConfig * | floorSelectorConfig |
| Floor selector config. Can be changed at runtime. | |
| NCFloorSelectorView * | floorSelectorView |
| Direct access for advanced customization (read-only). May be nil if widget is hidden. | |
| NCZoomControls * | zoomControls |
| NCFollowMeButton * | followMeButton |
| NCLocationWindow * | locationWindow |
| location view's main class. | |
Ready-to-use navigation view with built-in UI: “follow me” toggle and user location layer. zoom controls, floor selector, follow me toggle and user location layer. Automatically wires SDK listeners (location, sublocation, camera) and keeps widgets in sync. Use NCDefaultNavigationViewConfig to customize; config can be updated at runtime via the config property.
Basic usage with default config:
Objective C code snippet:
Custom config at init (visibility, colors, icons) via NCDefaultNavigationViewConfig:
Swift code snippet:
Objective C code snippet:
Runtime config update:
Swift code snippet:
Objective C code snippet:
Direct widget access for advanced customization:
Swift code snippet:
Objective C code snippet:
Definition at line 68 of file NCDefaultNavigationView.h.
| - (id) initWithCoder: | (NSCoder *) | aDecoder |
Initializes a location view from Interface Builder / storyboard.
Implements NCLocationView.
| - (id) initWithFrame: | (CGRect) | frame |
Creates a location view with the specified frame.
Swift code snippet:
Objective C code snippet:
Implements NCLocationView.
| - (id) initWithFrame: | (CGRect) | frame | |
| config: | (nullable NCDefaultNavigationViewConfig *) | config |
Creates a location view with the specified frame and view config (visibility only).
| frame | The frame rectangle. |
| config | Optional view config. nil = use default. |
Swift code snippet:
Objective C code snippet:
| - (id) initWithFrame: | (CGRect) | frame | |
| viewConfig: | (nullable NCDefaultNavigationViewConfig *) | viewConfig | |
| zoomConfig: | (nullable NCZoomControlsConfig *) | zoomConfig | |
| followMeConfig: | (nullable NCFollowMeButtonConfig *) | followMeConfig | |
| floorConfig: | (nullable NCFloorSelectorViewConfig *) | floorConfig |
Creates a location view with the specified frame and configs. Widget configs are passed directly; nil = use defaults.
|
readwritenonatomicstrong |
Floor selector config. Can be changed at runtime.
Definition at line 118 of file NCDefaultNavigationView.h.
|
readnonatomicassign |
Direct access for advanced customization (read-only). May be nil if widget is hidden.
Swift code snippet:
Objective C code snippet:
Definition at line 130 of file NCDefaultNavigationView.h.
|
readnonatomicassign |
Definition at line 132 of file NCDefaultNavigationView.h.
|
readwritenonatomicstrong |
Follow me button config. Can be changed at runtime.
Definition at line 116 of file NCDefaultNavigationView.h.
|
readnonatomicassigninherited |
location view's main class.
Class is used to interact with the view.
Definition at line 48 of file NCLocationView.h.
|
readwritenonatomicstrong |
View config (visibility). Can be changed at runtime.
Definition at line 112 of file NCDefaultNavigationView.h.
|
readnonatomicassign |
Definition at line 131 of file NCDefaultNavigationView.h.
|
readwritenonatomicstrong |
Zoom controls config. Can be changed at runtime.
Definition at line 114 of file NCDefaultNavigationView.h.