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

BackgroundSupportFragment

public final class BackgroundSupportFragment extends android.support.v4.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 BackgroundSupportFragment 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 BackgroundSupportFragment is just restored by FragmentManager,
        // and user does not call BackgroundManager.getInstance() yet.
        if (mBackgroundManager != null) {
            mBackgroundManager.onActivityResume();
        }
    
voidsetBackgroundManager(BackgroundManager backgroundManager)

        mBackgroundManager = backgroundManager;