All Products
Search
Document Center

Mobile Platform as a Service:CubeCard

Last Updated:Apr 24, 2023

This article describes the properties and methods of the Ant Cube Card core class.

Internet Properties

cardUid

/// The unique ID of the card.
@property (nonatomic, readonly) NSString *cardUid;

Method

renderView

/**
 Rendering view
 @param view
*/
- (void)renderView:(CubeView *)view;

getSize

/**
 Get card size
 @ return Card size
*/
- (CGSize)getSize;

updateData

/**
 Update data rendering
 @ param data The template data in the JSON format.
*/
- (void)updateData:(NSDictionary *)data;

callJsFunction

/**
 Call JS methods
 @ param function The name of the method.
 @ param arguments Call parameters
*/
- (void)callJsFunction:(NSString *)function arguments:(NSArray *)arguments;

notifyState

/**
 Notification card status
 @ param state The status of the card, which is notified when the card is displayed on the screen, displayed on the screen, and back and forth.
 */
-(void)notifyState:(CCardState)state;

getBindView

/**
 Obtain the view bound to the card (the view may be reused by other cards)
 @ return Bind view
 */
-(CubeView*)getBindView;