AliyunPasterUIEventProtocol

@protocol AliyunPasterUIEventProtocol <NSObject>

* The protocol of sticker callbacks on UI events.

  • * The callback when the size of the sticker is changed.

    Declaration

    Objective-C

    - (void)eventBoundsDidChanged:(CGRect)aBounds;

    Parameters

    aBounds

    贴图大小

  • * The callback when the position of the sticker is changed.

    Declaration

    Objective-C

    - (void)eventCenterDidChanged:(CGPoint)aCenter;

    Parameters

    aCenter

    The position of the sticker. The anchor point is (0.5, 0.5).

  • * The callback when the angle of the sticker is changed.

    Declaration

    Objective-C

    - (void)eventRotateDidChanged:(CGFloat)aRotate;

    Parameters

    aRotate

    The angle of the sticker in radians.

  • * The callback when the size of the text is changed.

    Declaration

    Objective-C

    - (void)eventTextBoundsDidChanged:(CGRect)aBounds;

    Parameters

    aBounds

    The text size.

  • * The callback when the position of the text is changed.

    Declaration

    Objective-C

    - (void)eventTextCenterDidChanged:(CGPoint)aCenter;

    Parameters

    aCenter

    The text position.

  • * The callback when the flip setting is changed.

    Declaration

    Objective-C

    - (void)eventMirrorChanged:(BOOL)isMirror;

    Parameters

    isMirror

    Whether to flip the sticker.

  • * The callback when the view that contains the sticker is changed.

    Declaration

    Objective-C

    - (void)eventPasterViewClosed:(id)pasterView;

    Parameters

    pasterView

    The view that contains the sticker.

  • * The callback when editing is complete.

    Declaration

    Objective-C

    - (void)eventEditDidEnd;