Loading...
Searching...
No Matches

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.
 

Detailed Description

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.

Method Documentation

◆ applyConfig:

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

Applies config at runtime. Call when config has changed.

Definition at line 92 of file NCFollowMeButton.m.

◆ initWithOnPressed:

- (instancetype) initWithOnPressed: (NCFollowMeButtonCallback) onPressed

Initializes follow me button with a callback.

Parameters
onPressedCallback block called when button is pressed.

Definition at line 19 of file NCFollowMeButton.m.

◆ initWithOnPressed:config:

- (instancetype) initWithOnPressed: (NCFollowMeButtonCallback) onPressed
config: (nullable NCFollowMeButtonConfig *) config 

Initializes follow me button with a callback and optional config.

Parameters
onPressedCallback block called when button is pressed.
configOptional config for icons and styles. nil = use defaults.

Definition at line 23 of file NCFollowMeButton.m.

◆ updateAppearanceForFollowingState:

- (void) updateAppearanceForFollowingState: (BOOL) isFollowing

Updates button appearance based on following state.

Definition at line 99 of file NCFollowMeButton.m.

Property Documentation

◆ following

- (BOOL) following
readnonatomicassign

Returns current following state.

Definition at line 50 of file NCFollowMeButton.h.


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