Skip to content

Instantly share code, notes, and snippets.

@RBusarow
Created December 28, 2019 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RBusarow/37ea14a6d96652783d81e1f7c8f01565 to your computer and use it in GitHub Desktop.
Save RBusarow/37ea14a6d96652783d81e1f7c8f01565 to your computer and use it in GitHub Desktop.
getValue() function from LiveData source
package androidx.lifecycle;
@Nullable
public T getValue() {
Object data = mData;
if (data != NOT_SET) {
return (T) data;
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment