Skip to content

Commit

Permalink
[AND-3] Add @JvmName to ThreadListViewModelBinding.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarVelikov committed Dec 2, 2024
1 parent fd76ab8 commit d02ebe2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5058,17 +5058,17 @@ public final class io/getstream/chat/android/ui/viewmodel/search/SearchViewModel
public static final fun bind (Lio/getstream/chat/android/ui/viewmodel/search/SearchViewModel;Lio/getstream/chat/android/ui/feature/search/list/SearchResultListView;Landroidx/lifecycle/LifecycleOwner;)V
}

public final class io/getstream/chat/android/ui/viewmodel/threads/ThreadListViewBindingKt {
public static final fun bindView (Lio/getstream/chat/android/ui/viewmodel/threads/ThreadListViewModel;Lio/getstream/chat/android/ui/feature/threads/list/ThreadListView;Landroidx/lifecycle/LifecycleOwner;)V
}

public final class io/getstream/chat/android/ui/viewmodel/threads/ThreadListViewModel : androidx/lifecycle/ViewModel {
public fun <init> (Lio/getstream/chat/android/ui/common/feature/threads/ThreadListController;)V
public final fun getState ()Landroidx/lifecycle/LiveData;
public final fun load ()V
public final fun loadNextPage ()V
}

public final class io/getstream/chat/android/ui/viewmodel/threads/ThreadListViewModelBinding {
public static final fun bind (Lio/getstream/chat/android/ui/viewmodel/threads/ThreadListViewModel;Lio/getstream/chat/android/ui/feature/threads/list/ThreadListView;Landroidx/lifecycle/LifecycleOwner;)V
}

public final class io/getstream/chat/android/ui/viewmodel/threads/ThreadsViewModelFactory : androidx/lifecycle/ViewModelProvider$Factory {
public fun <init> ()V
public fun <init> (III)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:JvmName("ThreadListViewModelBinding")

package io.getstream.chat.android.ui.viewmodel.threads

import androidx.lifecycle.LifecycleOwner
Expand All @@ -26,6 +28,7 @@ import io.getstream.chat.android.ui.feature.threads.list.ThreadListView
* This function sets listeners on the view and ViewModel. Call this method
* before setting any additional listeners on these objects yourself.
*/
@JvmName("bind")
public fun ThreadListViewModel.bindView(view: ThreadListView, lifecycleOwner: LifecycleOwner) {
state.observe(lifecycleOwner) { state ->
when {
Expand Down

0 comments on commit d02ebe2

Please sign in to comment.