Your input function declared, has mandatory parameter -> View, so you should provide View or change function signature.
s
Shagun Chahar
12/07/2022, 9:18 AM
If I change function signature the view as button doesn't work
g
gildor
12/07/2022, 11:08 AM
Could you please be more specific, your questions do not provide enough information to answer them or even understand your problem
s
Shagun Chahar
12/07/2022, 6:50 PM
@gildor I want to call this function INPUT
but can't as it's view type
e
Edgars Malahovskis
12/07/2022, 6:59 PM
@Shagun Chahar not sure what you are trying to explain, but clearly there is a problem with your code. As from what I can observe, your input method signature should look like
fun input()
If there are other places where this method can be called and view as parameter will actually be provided - thus is optional and therefore can be null, method signature should look like