Loading...
Searching...
No Matches

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
 

Detailed Description

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.

Method Documentation

◆ applyConfig:

- (void) applyConfig: (nullable NCFloorSelectorViewConfig *) config

Applies config at runtime. Call when config has changed.

Definition at line 255 of file NCFloorSelectorView.mm.

◆ initWithOrigin:onSublocationSelected:

- (instancetype) initWithOrigin: (CGPoint) origin
onSublocationSelected: (NCFloorSelectorCallback) onSublocationSelected 

Initializes floor selector.

Parameters
originTop-left point where selector should appear.
onSublocationSelectedCallback called when user picks a floor.

Definition at line 25 of file NCFloorSelectorView.mm.

◆ initWithOrigin:onSublocationSelected:config:

- (instancetype) initWithOrigin: (CGPoint) origin
onSublocationSelected: (NCFloorSelectorCallback) onSublocationSelected
config: (nullable NCFloorSelectorViewConfig *) config 

Initializes floor selector with optional config.

Parameters
originTop-left point where selector should appear.
onSublocationSelectedCallback called when user picks a floor.
configOptional config for styles and layout. nil = use defaults.

Definition at line 29 of file NCFloorSelectorView.mm.

◆ setFloors:

- (void) setFloors: (NSArray<LevelInfo *> *) floors

Sets list of floors to display.

Definition at line 43 of file NCFloorSelectorView.mm.

◆ setSublocationId:

- (void) setSublocationId: (int32_t) sublocationId

Highlights the active sublocation and scrolls to it when needed.

Definition at line 262 of file NCFloorSelectorView.mm.

Property Documentation

◆ bottomButton

- (UIButton*) bottomButton
readwritenonatomicstrong

Definition at line 63 of file NCFloorSelectorView.h.

◆ defaultPosition

- (CGPoint) defaultPosition
readwritenonatomicassign

Definition at line 64 of file NCFloorSelectorView.h.

◆ floors

- (NSArray<LevelInfo *>*) floors
readwritenonatomicstrong

Definition at line 60 of file NCFloorSelectorView.h.

◆ selectedFloorIndex

- (NSInteger) selectedFloorIndex
readwritenonatomicassign

Definition at line 59 of file NCFloorSelectorView.h.

◆ tableView

- (UITableView*) tableView
readwritenonatomicstrong

Definition at line 61 of file NCFloorSelectorView.h.

◆ topButton

- (UIButton*) topButton
readwritenonatomicstrong

Definition at line 62 of file NCFloorSelectorView.h.


The documentation for this class was generated from the following files: