ImageStickerLayerSettings

open class ImageStickerLayerSettings

Constructors

ImageStickerLayerSettings
Link copied to clipboard
fun ImageStickerLayerSettings(stickerConfig: ImageStickerAsset)

Types

Companion
Link copied to clipboard
object Companion
Event
Link copied to clipboard
object Event
TintMode
Link copied to clipboard
enum TintMode : Enum<ImageStickerLayerSettings.TintMode>

Functions

createLayer
Link copied to clipboard
open fun createLayer(): <ERROR CLASS>
describeContents
Link copied to clipboard
open fun describeContents(): Int
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
flipHorizontal
Link copied to clipboard

Flip the sticker horizontally.

open fun flipHorizontal(): ImageStickerLayerSettings
flipVertical
Link copied to clipboard

Flip the sticker vertically.

open fun flipVertical(): ImageStickerLayerSettings
getBrightness
Link copied to clipboard

Get the normalized brightness value of the sticker.

fun getBrightness(): Float
getColorMatrix
Link copied to clipboard

Returns the color matrix.

open fun getColorMatrix(): <ERROR CLASS>
getContrast
Link copied to clipboard

Get the normalized contrast value of the sticker.

fun getContrast(): Float
getInkColor
Link copied to clipboard

Return the ink color of the sticker.

open fun getInkColor(): Int
getLayerToolId
Link copied to clipboard

Returns the unique identifier of the sticker option tool.

open fun getLayerToolId(): String
getOpacity
Link copied to clipboard

Get the normalized opacity value of the sticker.

fun getOpacity(): Float
getSaturation
Link copied to clipboard

Get the normalized saturation value of the sticker.

fun getSaturation(): Float
getScaleDownFactor
Link copied to clipboard
open fun getScaleDownFactor(): Float
getStickerRotation
Link copied to clipboard

Return the rotation value of the sticker in degree.

open fun getStickerRotation(): Float
getStickerX
Link copied to clipboard

Return the normalized horizontally position of the sticker's center position.

open fun getStickerX(): Double
getStickerY
Link copied to clipboard

Return the normalized vertically position of the sticker's center position.

open fun getStickerY(): Double
getTintColor
Link copied to clipboard

Return the tint color of the sticker.

open fun getTintColor(): Int
getTintMode
Link copied to clipboard

Returns the tint mode of the sticker.

fun getTintMode(): ImageStickerLayerSettings.TintMode
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hasInitialPosition
Link copied to clipboard

Returns true if the sticker has an initial position.

fun hasInitialPosition(): Boolean
hasNonDefaults
Link copied to clipboard
open fun hasNonDefaults(): Boolean
hasVariants
Link copied to clipboard

Returns true if the variant count of the sticker is bigger than 1.

fun hasVariants(): Boolean
isAllowedWithLicensed
Link copied to clipboard
open fun isAllowedWithLicensed(): Boolean
isHorizontalFlipped
Link copied to clipboard

Returns true if the sticker is horizontal flipped.

open fun isHorizontalFlipped(): <ERROR CLASS>
isSingleton
Link copied to clipboard
open fun isSingleton(): Boolean
layerCanvasMode
Link copied to clipboard

Returns the current canvas mode.

open fun layerCanvasMode(): <ERROR CLASS>
nextVariant
Link copied to clipboard

Sets the variant to the next one.

fun nextVariant()
refreshContent
Link copied to clipboard

Calls the Event.CONFIG event to refresh the content.

fun refreshContent()
revertState
Link copied to clipboard
open fun revertState()
open fun revertState(saveState: <ERROR CLASS>)
setBrightness
Link copied to clipboard

Set the normalized brightness value of the sticker.

fun setBrightness(brightness: Float)
setColorMatrix
Link copied to clipboard
open fun setColorMatrix(filter: <ERROR CLASS>): ImageStickerLayerSettings
setContrast
Link copied to clipboard

Set the normalized contrast value of the sticker.

fun setContrast(contrast: Float)
setOpacity
Link copied to clipboard

Sets the opacity value of the sticker.

fun setOpacity(opacity: Float)
setPosition
Link copied to clipboard
open fun setPosition(stickerX: Double, stickerY: Double, stickerAngle: Float, stickerSize: Double): ImageStickerLayerSettings
setPostConcatColorMatrix
Link copied to clipboard

Sets the color matrix which is used after concatenation.

fun setPostConcatColorMatrix(postConcatColorMatrix: <ERROR CLASS>?)
setPreConcatColorMatrix
Link copied to clipboard

Sets the color matrix which is used before concatenation.

fun setPreConcatColorMatrix(preConcatColorMatrix: <ERROR CLASS>?)
setSaturation
Link copied to clipboard

Set the normalized saturation value of the sticker.

fun setSaturation(saturation: Float)
setStickerColorizeColor
Link copied to clipboard

Set the color of a sticker.

fun setStickerColorizeColor(color: Int)
setStickerInk
Link copied to clipboard
open fun setStickerInk(color: Int)
setStickerRotation
Link copied to clipboard

Set the rotation value of the sticker in degree.

open fun setStickerRotation(stickerRotation: Float): ImageStickerLayerSettings
setStickerSolidColor
Link copied to clipboard

Set the solid tint color of the sticker.

fun setStickerSolidColor(color: Int)
setStickerTint
Link copied to clipboard
open fun setStickerTint(color: Int)
toString
Link copied to clipboard
open override fun toString(): String

Properties

relativeHeight
Link copied to clipboard

The height of the sticker relative to the shorter side of the source.

val relativeHeight: Double
relativeWidth
Link copied to clipboard

The width of the sticker relative to the shorter side of the source.

val relativeWidth: Double
serializeAspect
Link copied to clipboard

The serialized aspect of the sticker. Default is 1.

var serializeAspect: <ERROR CLASS>
stickerConfig
Link copied to clipboard
open var stickerConfig: ImageStickerAsset
stickerSize
Link copied to clipboard

The scaling factor of the sticker, which is clamped between the max scaling and the min scaling.

val stickerSize: Double