Action after local notification alert

Hi guys, how can I change a variable on my OnboardingView after the user allow the use of local notification(NotificationHandler)?

I need to the property isEyeAnimated = true so the animation of the onboarding continues. I don’t know if I was clear.