public interface FeatureTransitionManager
FeatureTransitionManager
defines an interface for objects that can be used to show
FeatureView
s. A typically class implementing FeatureTransitionManager
is
an Activity
. It is recommended to use either PluginActivity
or PluginCompatActivity
as a base class for implementing
applications Activities.Modifier and Type | Method and Description |
---|---|
boolean |
canShowView(FeatureView view)
Tests if the given
FeatureView can be shown by this FeatureTransitionManager . |
void |
removeView(FeatureView featureView,
boolean addedToBackstack,
java.lang.String fragmentTag)
Removes the given
FeatureView from its container. |
void |
showView(FeatureView featureView,
boolean addToBackStack,
java.lang.String fragmentTag)
Shows the given
FeatureView . |
boolean canShowView(FeatureView view)
FeatureView
can be shown by this FeatureTransitionManager
.view
- A FeatureView
.boolean
.void showView(FeatureView featureView, boolean addToBackStack, java.lang.String fragmentTag)
FeatureView
. If parameter fragmentTag
is given null
value, implementation of this method should use the View.getViewTag()
method
to obtain the tag.featureView
- A FeatureView
. May not be null
.addToBackStack
- A boolean
value specifying if the FeatureView
is added
to back stack.fragmentTag
- A tag for the Fragment
. May be null
.void removeView(FeatureView featureView, boolean addedToBackstack, java.lang.String fragmentTag)
FeatureView
from its container.featureView
- A FeatureView
. May not be null
.addedToBackstack
- A boolean
value specifying if the FeatureView
was
added to back stack.fragmentTag
- The tag that was used in adding the Fragment
. May be null
,
if no tag was given when adding the Fragment
.