theapache64
08/08/2021, 3:02 PM* @sample androidx.activity.compose.samples.BackHandler
theapache64
08/08/2021, 5:31 PMBackHandler
method.Ian Lake
08/08/2021, 6:10 PMtheapache64
08/08/2021, 6:13 PMtheapache64
08/08/2021, 6:16 PMenabled
flag. for eg, how do i turn off the BackHandler
and pass the backpress event to system.theapache64
08/08/2021, 6:21 PMnavController
doesn’t have anything to pop and i need to close the activity. can i simply hoist a callback and call finish()
on activity ?Rudolf Tammekivi
08/08/2021, 6:35 PMIan Lake
08/08/2021, 8:58 PMNavController
has no destination to pop, it will automatically set its own back handler to disabled, you don't have to do anything to get the default behavior to finish your activity when there's nothing to poptheapache64
08/09/2021, 3:48 AMIan Lake
08/09/2021, 3:54 AMIan Lake
08/09/2021, 3:55 AM