package com.ustadmobile.port.android.view.ext;

import java.lang.System;

@kotlin.Metadata(mv = {1, 7, 1}, k = 2, d1 = {"\u0000\"\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a.\u0010\u0005\u001a\u00020\u0006\"\u0004\b\u0000\u0010\u0007*\b\u0012\u0004\u0012\u0002H\u00070\u00012\u0006\u0010\b\u001a\u00020\t2\u000e\u0010\n\u001a\n\u0012\u0006\b\u0000\u0012\u0002H\u00070\u000b\"!\u0010\u0000\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00018F\u00a2\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\u00a8\u0006\f"}, d2 = {"repoLoadingStatus", "Landroidx/lifecycle/LiveData;", "Lcom/ustadmobile/door/RepositoryLoadHelper$RepoLoadStatus;", "getRepoLoadingStatus", "(Landroidx/lifecycle/LiveData;)Landroidx/lifecycle/LiveData;", "observeIfFragmentViewIsReady", "", "T", "fragment", "Landroidx/fragment/app/Fragment;", "observer", "Landroidx/lifecycle/Observer;", "app-android_release"})
public final class LiveDataExtKt {
    
    @org.jetbrains.annotations.Nullable()
    public static final androidx.lifecycle.LiveData<com.ustadmobile.door.RepositoryLoadHelper.RepoLoadStatus> getRepoLoadingStatus(@org.jetbrains.annotations.NotNull()
    androidx.lifecycle.LiveData<?> $this$repoLoadingStatus) {
        return null;
    }
    
    /**
     * Safety wrapper to use a Fragment's viewLifecycleOwner to observe LiveData. If a user is moving
     * from one screen to another, and the data loads after the view is destroyed, this will result
     * in a crash. This function will check to make sure that the fragment's view is not null, and
     * will only proceed to observe if the view is ready
     *
     * @param fragment the fragment where we want to use it's viewLifecycleOwner to observe this LiveData
     * @param observer the observer as per the normal LiveData#observe
     */
    public static final <T extends java.lang.Object>void observeIfFragmentViewIsReady(@org.jetbrains.annotations.NotNull()
    androidx.lifecycle.LiveData<T> $this$observeIfFragmentViewIsReady, @org.jetbrains.annotations.NotNull()
    androidx.fragment.app.Fragment fragment, @org.jetbrains.annotations.NotNull()
    androidx.lifecycle.Observer<? super T> observer) {
    }
}