SCCameraKitAgreementsPresentationContextProvider
Objective-C
@protocol SCCameraKitAgreementsPresentationContextProvider <NSObject>
Swift
protocol AgreementsPresentationContextProvider : NSObjectProtocol
Describes an interface to provide presentation context for CameraKit to present agreements.
-
The view controller to present the agreements view controller from.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UIViewController *_Nonnull viewControllerForPresentingAgreements;
Swift
var viewControllerForPresentingAgreements: UIViewController { get }
-
Requests that the view controller passed be dismissed, with acceptance status.
Warning
the implementer of this protocol is responsible for dismissing the view controller.Declaration
Objective-C
- (void)dismissAgreementsViewController: (nonnull UIViewController *)agreementsViewController accepted:(BOOL)accepted;
Swift
func dismissAgreementsViewController(_ agreementsViewController: UIViewController, accepted: Bool)
Parameters
agreementsViewController
the view controller to dismiss.
accepted
whether or not the user accepted all the agreements presented.#import