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
 
(Class) - imageViewClass
 
(void) - setUp
 
(void) - setUpUI
 
(void) - applyAppboyAttributedTextStyleFrom:forLabel:
 

Properties

IBOutlet UIView * rootView
 
IBOutlet UIImageView * pinImageView
 
IBOutlet UIView * unviewedLineView
 
UIColor * unviewedLineViewColor
 
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.

- (void) setUp

initialization that always occurs for the content card cells

- (void) setUpUI

Initialization that is in place of Storyboard or XIB initialization. This method should call all the property specific setUp methods.

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
readwritenonatomicassign

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

- (IBOutlet UIView*) rootView
readwritenonatomicassign

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
readwritenonatomicassign

Card root view related constraints

- (IBOutlet UIView*) unviewedLineView
readwritenonatomicassign

This is the blue line under unviewed cards.