Skip to main content
Version: 8.12.x

bfgNewsLetter Class

A utility class for managing and displaying newsletter consent UI and status. More...#import <bfgNewsLetter.h>

Class Methods

(NewsletterConsentData *) + getNewsletterConsent
 Returns the current stored newsletter consent data. More...
 
(void) + showNewsletterConsentScreen
 Displays the newsletter consent screen to the user. More...
 
(void) + setResultCallback:
 Sets a callback to be triggered after the user makes a newsletter consent decision. More...
 

Detailed Description

A utility class for managing and displaying newsletter consent UI and status.
Since
8.10.2

Method Documentation

◆ getNewsletterConsent

+ (NewsletterConsentData *) getNewsletterConsent
Returns the current stored newsletter consent data.
Returns
The current NewsletterConsentData instance.
Since
8.10.2

◆ setResultCallback:

+ (void) setResultCallback: (BFGResultCallback) callback
Sets a callback to be triggered after the user makes a newsletter consent decision.
Parameters
callbackThe callback to execute with the user's opt-in status.
Since
8.10.2

◆ showNewsletterConsentScreen

+ (void) showNewsletterConsentScreen
Displays the newsletter consent screen to the user.
Since
8.10.2
A utility class for managing and displaying newsletter consent UI and status. More...#import <bfgNewsLetter.h>

Class Methods

(NewsletterConsentData *) + getNewsletterConsent
 Returns the current stored newsletter consent data. More...
 
(void) + showNewsletterConsentScreen
 Displays the newsletter consent screen to the user. More...
 
(void) + setResultCallback:
 Sets a callback to be triggered after the user makes a newsletter consent decision. More...
 

Detailed Description

A utility class for managing and displaying newsletter consent UI and status.
Since
8.10.2

Method Documentation

◆ getNewsletterConsent

+ (NewsletterConsentData *) getNewsletterConsent
Returns the current stored newsletter consent data.
Returns
The current NewsletterConsentData instance.
Since
8.10.2

◆ setResultCallback:

+ (void) setResultCallback: (BFGResultCallback) callback
Sets a callback to be triggered after the user makes a newsletter consent decision.
Parameters
callbackThe callback to execute with the user's opt-in status.
Since
8.10.2

◆ showNewsletterConsentScreen

+ (void) showNewsletterConsentScreen
Displays the newsletter consent screen to the user.
Since
8.10.2