Floating “follow me” button for navigation view. Toggles following mode and updates its appearance. More...
#include <com/navigine/idl/objc/widgets/NCFollowMeButton.h>
Inherits UIButton.
Instance Methods | |
| (instancetype) | - initWithOnPressed: |
| Initializes follow me button with a callback. | |
| (instancetype) | - initWithOnPressed:config: |
| Initializes follow me button with a callback and optional config. | |
| (void) | - updateAppearanceForFollowingState: |
| Updates button appearance based on following state. | |
| (void) | - applyConfig: |
| Applies config at runtime. Call when config has changed. | |
Properties | |
| BOOL | following |
| Returns current following state. | |
Floating “follow me” button for navigation view. Toggles following mode and updates its appearance.
NCFollowMeButtonConfig for styling.
Definition at line 27 of file NCFollowMeButton.h.
| - (void) applyConfig: | (nullable NCFollowMeButtonConfig *) | config |
Applies config at runtime. Call when config has changed.
Definition at line 92 of file NCFollowMeButton.m.
| - (instancetype) initWithOnPressed: | (NCFollowMeButtonCallback) | onPressed |
Initializes follow me button with a callback.
| onPressed | Callback block called when button is pressed. |
Definition at line 19 of file NCFollowMeButton.m.
| - (instancetype) initWithOnPressed: | (NCFollowMeButtonCallback) | onPressed | |
| config: | (nullable NCFollowMeButtonConfig *) | config |
Initializes follow me button with a callback and optional config.
| onPressed | Callback block called when button is pressed. |
| config | Optional config for icons and styles. nil = use defaults. |
Definition at line 23 of file NCFollowMeButton.m.
| - (void) updateAppearanceForFollowingState: | (BOOL) | isFollowing |
Updates button appearance based on following state.
Definition at line 99 of file NCFollowMeButton.m.
|
readnonatomicassign |
Returns current following state.
Definition at line 50 of file NCFollowMeButton.h.