ViewModelProviderKt

public final class ViewModelProviderKt


Summary

Public methods

static final @MainThread @NonNull VM
<VM extends ViewModel> ViewModelProviderKt.get(
    @NonNull ViewModelProvider receiver
)

Returns an existing ViewModel or creates a new one in the scope (usually, a fragment or an activity), associated with this ViewModelProvider.

Public methods

ViewModelProviderKt.get

@MainThread
@NonNull
public static final @MainThread VM <VM extends ViewModel> ViewModelProviderKt.get(
    @NonNull ViewModelProvider receiver
)

Returns an existing ViewModel or creates a new one in the scope (usually, a fragment or an activity), associated with this ViewModelProvider.

See also
get

(Class)