Hi, Everyone.
Anyone can help me here. how can i how to add multiple selection in callback,
Simply i have Lambda of List
DataResponse, on callback.invoke function i am trying to pass Array of all DataResponse in Lamda, and simply pass that onClick event to Submit view.
Code Snippet.
Passing this to My Parameter inside Adapter
val callback: ((List<DataResponse>) -> Unit)? = null,
Calling it inside onBindViewHolder
callback?.invoke(selectedOptions).
Current Behaviour. it's taking only simple DataResponse, I am trying to take all values whichever i select here not just single value