Navigation Delegate/Callbacks

Hello,

Is there a suggested method for allowing the containing application to listen for navigation events in the UIKit without needing to fork? e.g swapping tabs on the social home page, navigating to community pages, profile pages, post pages etc?

Thanks

Hello @tech_perx , You can handle navigation events without forking by overriding the navigation behavior as described here:
:backhand_index_pointing_right: https://docs.social.plus/social-plus-uikit/uikit-4/customization/overriding-navigation-behaviour

I don’t want to override the behavior, I want the default navigation behavior to occur, I just want to be able to listen for navigation events so I can trigger analytics events. As far as I can tell these behaviours also offer no way to hook into the tab changing on the Social Home page.

Hello @tech_perx , Thank you for clarifying your requirement. At the moment, UIKit 4 does not support listening to navigation events while keeping the default navigation behavior. From your description, it seems you would like to track analytics events for actions that trigger navigations and tab changes.

Our team suggests that, for now, the feasible approach would be to fork the project and add the event hooks at the relevant action points directly on your side.