FileDocCategorySizeDatePackage
BackgroundFragment.javaAPI DocAndroid 5.1 API1787Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.app

BackgroundFragment

public final class BackgroundFragment extends android.app.Fragment
Fragment used by the background manager.
hide

Fields Summary
private BackgroundManager
mBackgroundManager
Constructors Summary
Methods Summary
BackgroundManagergetBackgroundManager()

        return mBackgroundManager;
    
public voidonDestroy()

        super.onDestroy();
        // mBackgroundManager might be null:
        // if BackgroundFragment is just restored by FragmentManager,
        // and user does not call BackgroundManager.getInstance() yet.
        if (mBackgroundManager != null) {
            mBackgroundManager.detach();
        }
    
public voidonResume()

        super.onResume();
        // mBackgroundManager might be null:
        // if BackgroundFragment is just restored by FragmentManager,
        // and user does not call BackgroundManager.getInstance() yet.
        if (mBackgroundManager != null) {
            mBackgroundManager.onActivityResume();
        }
    
voidsetBackgroundManager(BackgroundManager backgroundManager)

        mBackgroundManager = backgroundManager;