{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

CreationExtras.Empty

public static class CreationExtras.Empty extends CreationExtras

java.lang.Object
   ↳ androidx.lifecycle.viewmodel.CreationExtras
     ↳ androidx.lifecycle.viewmodel.CreationExtras.Empty

Empty CreationExtras

Summary

Public fields

static @NonNull CreationExtras.Empty

Public methods

T
<T extends Object> get(@NonNull CreationExtras.Key<@NonNull T> key)

Returns an element associated with the given key

Public fields

INSTANCE

public static @NonNull CreationExtras.Empty INSTANCE

Public methods

get

public T <T extends Object> get(@NonNull CreationExtras.Key<@NonNull T> key)

Returns an element associated with the given key