Closed yayahassani closed 5 months ago
It looks like these are in 1.9.0-alpha01 and newer. I'm not sure what the release schedule for that artifact is, but it looks like there's currently a beta, so hopefully a stable release is coming soon.
For reference, this is defined in the OnUserLeaveHintProvider here and implemented in ComponentActivity here.
In this snippet and the documentation mentioned to use the
addOnUserLeaveHintListener
to register a listener for user leave action of the activity but I have not found such a method. I am using the latest version ofandroidx.activity:activity
which is1.8.2
.