@interface MPConsentDialogViewController : UIViewController
An interface used to load the MoPub consent dialog.
Description: Delegate object to inform an outside object of events.
@property (nonatomic, weak) id<MPConsentDialogViewControllerDelegate> delegate;
- /initWithDialogHTML: /+5.0.0
Description: Initializes a consent dialog view controller with an HTML string to load. It is expected that this initializer is used when initializing.
- (instancetype)initWithDialogHTML:(NSString *)dialogHTML NS_DESIGNATED_INITIALIZER;
dialogHTML: The markup string for the consent dialog.
- /loadConsentPageWithCompletion: /+5.0.0
Description: This method starts the loading of the consent page. When complete, the
completioncallback method will be called with a
BOOLindicating success, and an
NSErrorobject with information about the error in the case of failure. This method can be called and is expected to be called before the view controller is presented. This way, the consent dialog is already loaded and in view by the time the user sees it.
- (void)loadConsentPageWithCompletion:(void (^_Nullable)(BOOL success, NSError *error))completion;
Last updated October 06, 2020
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2020 MoPub (a division of Twitter, Inc.)