I am writing a platform view backed plugin for Flutter which uses OpenGL during rendering. When orientation changes I need to update EGL context to reference actual window-backed rendering context.
But how can I detect orientation change (e.g. in PlatformView subtype)?
Implemented Application.ActivityLifecycleCallbacks methods do not seem to get invoked at all on rotation after attaching then to the Application instance.