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
aCenterThe 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
aRotateThe angle of the sticker in radians.
-
* The callback when the size of the text is changed.
Declaration
Objective-C
- (void)eventTextBoundsDidChanged:(CGRect)aBounds;Parameters
aBoundsThe text size.
-
* The callback when the position of the text is changed.
Declaration
Objective-C
- (void)eventTextCenterDidChanged:(CGPoint)aCenter;Parameters
aCenterThe text position.
-
* The callback when the flip setting is changed.
Declaration
Objective-C
- (void)eventMirrorChanged:(BOOL)isMirror;Parameters
isMirrorWhether to flip the sticker.
-
* The callback when the view that contains the sticker is changed.
Declaration
Objective-C
- (void)eventPasterViewClosed:(id)pasterView;Parameters
pasterViewThe view that contains the sticker.
-
* The callback when editing is complete.
Declaration
Objective-C
- (void)eventEditDidEnd;
AliyunPasterUIEventProtocol Protocol Reference