Atul Gupta
val haptic = LocalHapticFeedback.current
haptic.performHapticFeedback(HapticFeedbackType.LongPress)
Image( modifier = Modifier.clickable(role = Role.Button) { haptic.performHapticFeedback(HapticFeedbackType.LongPress) // invoking some lambda }, painter = painterResource(R.drawable.some_icon), contentDescription = stringResource(R.string.content_desc) )
Shahzad Ansari
Zoltan Demant
This should work fine. Might not be it but are you testing on an emulator?
DND
A modern programming language that makes developers happier.