public interface FeatureContainer extends FeatureTransitionManager
FeatureContainer
extends FeatureTransitionManager
to define
an interface for objects that can be used to show FeatureCompatFragment
s. 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
FeatureView s 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 FeatureCompatFragment s |
android.content.res.Resources |
getResources()
Gets the
Resources available for FeatureCompatFragment s |
java.lang.String |
goBack()
Pops the previous
FeatureView from the back stack. |
canShowView, removeView, showView
android.content.Context getContext()
Context
available for FeatureCompatFragment
sContext
.int getContainerViewId()
ViewGroup
ID for this FeatureContainer
.int
constant.android.content.res.Resources getResources()
Resources
available for FeatureCompatFragment
sResources
.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)
FeatureView
s 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
.