Thread
#compose
    a

    Anthony

    1 year ago
    When using a ModalBottomSheetLayout, is there a way to track when the user dismisses the modal bottom sheet by clicking on the screen above it and not on the predefined button to close the bottomsheet itself?
    brandonmcansh

    brandonmcansh

    1 year ago
    Tapping outside is considered a cancel event. Iirc there was a callback for that
    a

    Anthony

    1 year ago
    Where could I find some documentation on this callback and how to implement it? The doc here doesn't seem to have any mention of this callback.
    d

    dimsuz

    1 year ago
    I think currently there's no callback. What I do is I specify
    confirmStateChange = { state -> reportStateChange(state); true }
    (or return false) It's a part of ModalBottomSheetState:https://developer.android.com/reference/kotlin/androidx/compose/material/ModalBottomSheetState