setListener

void setListener(@NonNull() OnboardingFragmentListener listener)

Set a listener for onboarding events.

By default the hosting Activity is expected to implementthe OnboardingFragmentListener. In case that is not feasible you may set thelistener using this method.

Note: the listener is expected to be available until the fragment isattached to an activity. Make sure to set the listener before that.

Parameters