Is there a way to get a callback when an AndroidView is being detached before the view is detached from the window? I’m trying to get a bitmap of the last frame played in ExoPlayer before the view is removed.
a
Adam Powell
05/14/2021, 8:12 PM
should be able to use a standard attach state change listener, e.g.
ah, I'm not familiar enough with exoplayer's expected lifecycle for that then. You should be able to use the same basic idea with a more appropriate exoplayer callback