public interface FeatureContainer extends FeatureTransitionManager
FeatureContainer extends FeatureTransitionManager to define
an interface for objects that can be used to show FeatureCompatFragments. Typically a such
object is an Activity.| Modifier and Type | Method and Description |
|---|---|
boolean |
canCommitFragment()
Tests if a
Fragment can be committed. |
boolean |
canGoBack()
Tests if the previous
FeatureView can be popped from the back stack. |
void |
clearBackStack(java.util.HashMap<java.lang.String,FeatureView> backStackViews)
Clears
FeatureViews of contained Feature from the back stack. |
int |
getContainerViewId()
Gets the container
ViewGroup ID for this FeatureContainer. |
android.content.Context |
getContext()
Gets the
Context available for FeatureCompatFragments |
android.content.res.Resources |
getResources()
Gets the
Resources available for FeatureCompatFragments |
java.lang.String |
goBack()
Pops the previous
FeatureView from the back stack. |
canShowView, removeView, showViewandroid.content.Context getContext()
Context available for FeatureCompatFragmentsContext.int getContainerViewId()
ViewGroup ID for this FeatureContainer.int constant.android.content.res.Resources getResources()
Resources available for FeatureCompatFragmentsResources.boolean canCommitFragment()
Fragment can be committed. A Fragment cannot be committed
using FragmentTransaction.commit() after method Activity.onSaveInstanceState(Bundle)
has been invoked.boolean value.void clearBackStack(java.util.HashMap<java.lang.String,FeatureView> backStackViews)
FeatureViews of contained Feature from the back stack.backStackViews - A HashMap containing the backboolean canGoBack()
FeatureView can be popped from the back stack.boolean value.java.lang.String goBack()
FeatureView from the back stack.FeatureView. May return null.