enableHardwareSnapButton

fun enableHardwareSnapButton(key: Int = KeyEvent.KEYCODE_VOLUME_DOWN)

Enable pressing hardware button to make snap on this screen. Pass KeyEvent.KEYCODE_VOLUME_DOWN or any other KeyEvent.KEYCODE that is supported by the device. By default for kotlin KeyEvent.KEYCODE_VOLUME_DOWN code being used.