, available in androidx.core ?
Note that the first alternative will crash the app if the returned object is not a Vibrator or if it is null (which is very unlikely since the vibrator service exists since API 1)
👍 2
l
Luca Nicoletti
11/03/2019, 8:19 AM
You never know what manifacturers will stop shipping on devices 🧌
😂 1
Luca Nicoletti
11/03/2019, 8:19 AM
Always fo with the safest way 🙂 which in this case is the one @tseisel posted