Package com.unblu.sdk.core.ui
Class UnbluAnimationData
java.lang.Object
com.unblu.sdk.core.ui.UnbluAnimationData
Defines the animation start data when display the Unblu UI modally
-
Constructor Summary
ConstructorDescriptionUnbluAnimationData
(int sourceWidth, int sourceHeight, int x, int y, int backgroundColorForAnimation) UnbluAnimationData
(int sourceWidth, int sourceHeight, int x, int y, int backgroundColorForAnimation, android.graphics.Bitmap viewDrawCache) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the background color for the container from where the layout is animated.int
Returns the source height of the animation object.int
Returns the source width of the animation object.android.graphics.Bitmap
Returns a cached bitmap representation of the view that can be used for animations and transformations.int
getX()
Returns the x-coordinate of the animation object's origin or starting position.int
getY()
Returns the y-coordinate of the animation object's origin or starting position.void
setViewDrawCache
(android.graphics.Bitmap viewDrawCache) Set a cached bitmap representation of the view that can be used for animations and transformations.
-
Constructor Details
-
UnbluAnimationData
public UnbluAnimationData(int sourceWidth, int sourceHeight, int x, int y, int backgroundColorForAnimation) -
UnbluAnimationData
public UnbluAnimationData(int sourceWidth, int sourceHeight, int x, int y, int backgroundColorForAnimation, android.graphics.Bitmap viewDrawCache)
-
-
Method Details
-
getSourceWidth
public int getSourceWidth()Returns the source width of the animation object.- Returns:
- width of the source.
-
getSourceHeight
public int getSourceHeight()Returns the source height of the animation object.- Returns:
- height of the source.
-
getX
public int getX()Returns the x-coordinate of the animation object's origin or starting position.- Returns:
- x-coordinate of the source.
-
getY
public int getY()Returns the y-coordinate of the animation object's origin or starting position.- Returns:
- y-coordinate of the source.
-
getBackgroundColorForAnimation
public int getBackgroundColorForAnimation()Returns the background color for the container from where the layout is animated.- Returns:
- background color as int value.
-
getViewDrawCache
@Nullable public android.graphics.Bitmap getViewDrawCache()Returns a cached bitmap representation of the view that can be used for animations and transformations. This method might return null if a cached bitmap is not available or not set.- Returns:
- a Bitmap representing the cached view or null if not available.
-
setViewDrawCache
public void setViewDrawCache(android.graphics.Bitmap viewDrawCache) Set a cached bitmap representation of the view that can be used for animations and transformations.
-