ViewModelProviderGetKt

Added in 2.5.0

public final class ViewModelProviderGetKt


Summary

Public methods

static final @NonNull VM
@MainThread
<VM extends ViewModel> 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

@MainThread
public static final @NonNull VM <VM extends ViewModel> 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)