Files
Golf2D/Assets/Plugins/iOS/ConsentManager/ConsentForm.h
2023-12-06 14:51:43 +05:30

31 lines
978 B
Objective-C

#import <Foundation/Foundation.h>
#import "ConsentManagerErrorBridge.h"
#import "ConsentBridge.h"
NS_ASSUME_NONNULL_BEGIN
@class ConsentForm;
typedef void (ConsentFormCallback)(void);
typedef void (ConsentFormCallbackError)(ConsentManagerErrorBridge *error);
typedef void (ConsentFormCallbackClosed)(ConsentBridge *consent);
FOUNDATION_EXPORT ConsentForm *GetConsentForm(void);
FOUNDATION_EXPORT void WithListener(ConsentFormCallback onConsentFormLoaded,
ConsentFormCallbackError onConsentFormError,
ConsentFormCallback onConsentFormOpened,
ConsentFormCallbackClosed onConsentFormClosed);
FOUNDATION_EXPORT ConsentForm *GetConsentForm(void);
FOUNDATION_EXPORT void Load(void);
FOUNDATION_EXPORT void Show(void);
FOUNDATION_EXPORT bool IsLoaded(void);
FOUNDATION_EXPORT bool IsShowing(void);
@interface ConsentForm : NSObject
@end
NS_ASSUME_NONNULL_END