Updated defaults for shake()

This commit is contained in:
Robinson 2023-02-14 13:04:00 +01:00
parent df2d1921c6
commit 097411136b
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C

View File

@ -417,7 +417,7 @@ class Notify private constructor() {
* @param durationInMillis now long it will shake
* @param amplitude a measure of how much it needs to shake. 4 is a small amount of shaking, 10 is a lot.
*/
fun shake(durationInMillis: Int, amplitude: Int): Notify {
fun shake(durationInMillis: Int = 2000, amplitude: Int = 4): Notify {
shakeDurationInMillis = durationInMillis
shakeAmplitude = amplitude