https://kotlinlang.org logo
#android
Title
# android
v

Vaibhav Jaiswal

04/20/2021, 7:41 PM
Hi! I had a question. Why setMaxDate is not available in Kotlin's DatePickerDialog? I am attaching the picture of code. You see, the IDE doesn't seem to suggest me setMaxDate and insetead suggests about maxDate which is another function
n

Nikolay Puliaev

04/20/2021, 7:44 PM
It’s a property access syntax, you can use it as getter or setter. To set value simply use like
maxDate = date
v

Vaibhav Jaiswal

04/21/2021, 10:29 AM
Thanks! @Nikolay Puliaev
4 Views