Skip to content

ADStickerInteractView

duzexu edited this page Sep 18, 2021 · 2 revisions

ADStickerInteractView

Shared view that you can add sticker to.

public class ADStickerInteractView: UIView, ADToolInteractable 

Inheritance

ADToolInteractable, UIView

Properties

zIndex

public var zIndex: Int 

strategy

public var strategy: ADInteractStrategy  

interactClipBounds

public var interactClipBounds: Bool 

clipingScreenInfo

public var clipingScreenInfo: ADClipingInfo? = nil 

share

Get shared sticker interact view.

public static var share 

Methods

shouldInteract(_:point:)

public func shouldInteract(_ gesture: UIGestureRecognizer, point: CGPoint) -> Bool 

interact(with:scale:state:)

public func interact(with type: ADInteractType, scale: CGFloat, state: UIGestureRecognizer.State) -> TimeInterval? 

willBeginRenderImage()

public func willBeginRenderImage() 

didEndRenderImage()

public func didEndRenderImage() 

addContent(_:)

Add sticker content to shared view.

public func addContent(_ view: ADStickerContentView) 

Parameters

  • view: Sticker content.

appendContent(_:)

Add sticker content to shared view.

public func appendContent(_ view: ADStickerContentView) 

Parameters

  • view: Sticker content

clear()

Clear all content in shared view.

public func clear() 
Types
Protocols
Global Typealiases
Operators
Extensions

Clone this wiki locally