Vertical floor selector for navigation view. Shows available sublocations, scrolls when needed, hides for single-floor cases. More...
#include <com/navigine/idl/objc/widgets/NCFloorSelectorView.h>
Inherits UIView, <UITableViewDataSource>, and <UITableViewDelegate>.
Instance Methods | |
| (instancetype) | - initWithOrigin:onSublocationSelected: |
| Initializes floor selector. | |
| (instancetype) | - initWithOrigin:onSublocationSelected:config: |
| Initializes floor selector with optional config. | |
| (void) | - applyConfig: |
| Applies config at runtime. Call when config has changed. | |
| (void) | - setFloors: |
| Sets list of floors to display. | |
| (void) | - setSublocationId: |
| Highlights the active sublocation and scrolls to it when needed. | |
Properties | |
| NSInteger | selectedFloorIndex |
| NSArray< LevelInfo * > * | floors |
| UITableView * | tableView |
| UIButton * | topButton |
| UIButton * | bottomButton |
| CGPoint | defaultPosition |
Vertical floor selector for navigation view. Shows available sublocations, scrolls when needed, hides for single-floor cases.
NCFloorSelectorViewConfig for styling.
Definition at line 31 of file NCFloorSelectorView.h.
| - (void) applyConfig: | (nullable NCFloorSelectorViewConfig *) | config |
Applies config at runtime. Call when config has changed.
Definition at line 255 of file NCFloorSelectorView.mm.
| - (instancetype) initWithOrigin: | (CGPoint) | origin | |
| onSublocationSelected: | (NCFloorSelectorCallback) | onSublocationSelected |
Initializes floor selector.
| origin | Top-left point where selector should appear. |
| onSublocationSelected | Callback called when user picks a floor. |
Definition at line 25 of file NCFloorSelectorView.mm.
| - (instancetype) initWithOrigin: | (CGPoint) | origin | |
| onSublocationSelected: | (NCFloorSelectorCallback) | onSublocationSelected | |
| config: | (nullable NCFloorSelectorViewConfig *) | config |
Initializes floor selector with optional config.
| origin | Top-left point where selector should appear. |
| onSublocationSelected | Callback called when user picks a floor. |
| config | Optional config for styles and layout. nil = use defaults. |
Definition at line 29 of file NCFloorSelectorView.mm.
| - (void) setFloors: | (NSArray<LevelInfo *> *) | floors |
Sets list of floors to display.
Definition at line 43 of file NCFloorSelectorView.mm.
| - (void) setSublocationId: | (int32_t) | sublocationId |
Highlights the active sublocation and scrolls to it when needed.
Definition at line 262 of file NCFloorSelectorView.mm.
|
readwritenonatomicstrong |
Definition at line 63 of file NCFloorSelectorView.h.
|
readwritenonatomicassign |
Definition at line 64 of file NCFloorSelectorView.h.
|
readwritenonatomicstrong |
Definition at line 60 of file NCFloorSelectorView.h.
|
readwritenonatomicassign |
Definition at line 59 of file NCFloorSelectorView.h.
|
readwritenonatomicstrong |
Definition at line 61 of file NCFloorSelectorView.h.
|
readwritenonatomicstrong |
Definition at line 62 of file NCFloorSelectorView.h.