alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

What is the best way to avoid accidental repeated clicks on Any btn in android ?

What is the best way to avoid accidental repeated clicks on Any btn in android ?
 ​fun​ NavController.​safeNavigate​(​direction​:​ ​NavDirections​) {​    
       currentDestination?.getAction(direction.actionId)?.​run​ { navigate(direction) }
​} 

And instead of navController.navigate, use navController.safeNavigate with the same arguments.


15 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online