Braze iOS SDK
Documentation for the Braze iOS SDK
 All Classes Functions Properties
Instance Methods | Properties | List of all members
ABKBaseContentCardCell Class Reference

Instance Methods

(void) - applyCard:
 
(UIImage *) - getPlaceHolderImage
 
(void) - applyAppboyAttributedTextStyleFrom:forLabel:
 

Properties

IBOutlet UIView * rootView
 
IBOutlet UIImageView * pinImageView
 
IBOutlet UIView * unviewedLineView
 
IBOutlet NSLayoutConstraint * rootViewLeadingConstraint
 
IBOutlet NSLayoutConstraint * rootViewTrailingConstraint
 
IBOutlet NSLayoutConstraint * rootViewTopConstraint
 
IBOutlet NSLayoutConstraint * rootViewBottomConstraint
 
IBOutlet NSLayoutConstraint * cardWidthConstraint
 
CGFloat cardSidePadding
 
CGFloat cardSpacing
 
BOOL hideUnreadIndicator
 
id
< ABKBaseContentCardCellDelegate
delegate
 

Method Documentation

- (void) applyAppboyAttributedTextStyleFrom: (NSString *)  text
forLabel: (UILabel *)  label 

This is a utility method to make text styled.

- (void) applyCard: (ABKContentCard *)  card
Parameters
cardThe card model for the cell.

Apply the data from the given card to the card cell.

- (UIImage *) getPlaceHolderImage

This is a utility method to return the place holder image.

Property Documentation

- (CGFloat) cardSidePadding
readwritenonatomicassign

These are basic UI configuration for the Content Cards feed. They are set to the default values in the setUp method.

It's recommended to set the values before the view is displayed.

- (id<ABKBaseContentCardCellDelegate>) delegate
readwritenonatomicweak

To communicate back after any cell updates occur

- (IBOutlet UIImageView*) pinImageView
readwritenonatomicweak

This is the triangle image which shows if a card has been viewed by the user.

- (IBOutlet UIView*) rootView
readwritenonatomicweak

This view displays the card contents and is the base view container for each card. To change or configure the outline of the card like card width, background color board width, etc, you can update this property accordingly.

- (IBOutlet NSLayoutConstraint*) rootViewLeadingConstraint
readwritenonatomicweak

Card root view related constraints

- (IBOutlet UIView*) unviewedLineView
readwritenonatomicweak

This is the blue line under unviewed cards.