public class TransitionSliding extends Transition
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_BOTTOM_OUT_TOP_IN
Video 1 is pushed to the bottom while video 2 is coming from top
|
static int |
DIRECTION_LEFT_OUT_RIGHT_IN
Video 1 is pushed to the left while video 2 is coming from right
|
static int |
DIRECTION_RIGHT_OUT_LEFT_IN
Video 1 is pushed to the right while video 2 is coming from left
|
static int |
DIRECTION_TOP_OUT_BOTTOM_IN
Video 1 is pushed to the top while video 2 is coming from bottom
|
BEHAVIOR_LINEAR, BEHAVIOR_MIDDLE_FAST, BEHAVIOR_MIDDLE_SLOW, BEHAVIOR_SPEED_DOWN, BEHAVIOR_SPEED_UP, mBehavior, mDurationMs, mFilename, mNativeHelper
Constructor and Description |
---|
TransitionSliding(String transitionId,
MediaItem afterMediaItem,
MediaItem beforeMediaItem,
long durationMs,
int behavior,
int direction)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDirection()
Get the sliding direction.
|
equals, getAfterMediaItem, getBeforeMediaItem, getBehavior, getDuration, getId, getMaximumDuration, hashCode, setDuration
public static final int DIRECTION_RIGHT_OUT_LEFT_IN
public static final int DIRECTION_LEFT_OUT_RIGHT_IN
public static final int DIRECTION_TOP_OUT_BOTTOM_IN
public static final int DIRECTION_BOTTOM_OUT_TOP_IN
public TransitionSliding(String transitionId, MediaItem afterMediaItem, MediaItem beforeMediaItem, long durationMs, int behavior, int direction)
transitionId
- The transition idafterMediaItem
- The transition is applied to the end of this
media itembeforeMediaItem
- The transition is applied to the beginning of
this media itemdurationMs
- duration of the transition in millisecondsbehavior
- behavior is one of the behavior defined in Transition
classdirection
- direction shall be one of the supported directions like
RIGHT_OUT_LEFT_INIllegalArgumentException
- if behavior is not supported.