public class SnapSticker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
JSONObject |
getJsonForm(Uri stickerUri,
Context context) |
java.io.File |
getStickerFile()
Getter for the sticker file.
|
void |
setHeight(float height)
Deprecated.
use the
setHeightDp(float) method. |
void |
setHeightDp(float heightDp)
Setter for the height of the sticker in density independent pixels.
|
void |
setPosX(float positionX)
Setter for the horizontal position of the sticker.
|
void |
setPosY(float positionY)
Setter for the vertical position of the sticker.
|
void |
setRotationDegreesClockwise(float rotation)
The rotation to apply on the sticker.
|
void |
setWidth(float width)
Deprecated.
use the
setWidthDp(float) method. |
void |
setWidthDp(float widthDp)
Setter for the width of the sticker in density independent pixels.
|
public void setRotationDegreesClockwise(@FloatRange(from=0.0,to=360.0)
float rotation)
rotation - Value in degrees to rotate clockwise.public void setPosX(@FloatRange(from=0.0,to=1.0)
float positionX)
positionX - horizontal position in the range of 0-1 to place the center of the sticker.public void setPosY(@FloatRange(from=0.0,to=1.0)
float positionY)
positionY - vertical position in the range 0-1 to place the center of the sticker.@Deprecated
public void setWidth(@FloatRange(from=0.0,to=300.0)
float width)
setWidthDp(float) method.width - The width of the sticker in pixels.@Deprecated
public void setHeight(@FloatRange(from=0.0,to=300.0)
float height)
setHeightDp(float) method.height - The height of the sticker in pixels.public void setWidthDp(@FloatRange(from=0.0,to=300.0)
float widthDp)
widthDp - The width of the sticker in dp.public void setHeightDp(@FloatRange(from=0.0,to=300.0)
float heightDp)
heightDp - The height of the sticker in dp.public JSONObject getJsonForm(@NonNull
Uri stickerUri,
Context context)
@NonNull public java.io.File getStickerFile()