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

Instance Methods

(NSInteger) - unviewedContentCardCount
 
(NSInteger) - contentCardCount
 

Properties

NSArray * contentCards
 
NSDate * lastUpdate
 

Method Documentation

- (NSInteger) contentCardCount

This method returns the total number of currently active content cards. Cards are counted only once even if they appear in multiple Content Cards views.

- (NSInteger) unviewedContentCardCount

This method returns the number of currently active content cards which have not been viewed. A "view" happens when a card becomes visible in the Content Cards view. This differentiates between cards which are off-screen in the scrolling view, and those which are on-screen; when a card scrolls onto the screen, it's counted as viewed.

Cards are counted as viewed only once – if a card scrolls off the screen and back on, it's not re-counted.

Cards are counted only once even if they appear in multiple Content Cards views or across multiple devices.

Property Documentation

- (NSArray*) contentCards
readatomicassign

The latest content cards that are saved in memory and disk.

- (NSDate*) lastUpdate
readatomicassign

The NSDate object that indicates the last time the contentCards property was updated from Appboy server.