From 1e5242aa56dd1c52c537335ee56d7127d09b24de Mon Sep 17 00:00:00 2001 From: lpw <812862340@qq.com> Date: Thu, 11 Sep 2025 09:19:08 +0800 Subject: [PATCH] 提交版本 4.7.0 --- WAAdmobImpl/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/Headers/UMPConsentForm.h | 32 ++++++++++++++++++++------------ 1 files changed, 20 insertions(+), 12 deletions(-) diff --git a/WAAdmobImpl/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/Headers/UMPConsentForm.h b/WAAdmobImpl/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/Headers/UMPConsentForm.h index c53cfad..8b96373 100644 --- a/WAAdmobImpl/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/Headers/UMPConsentForm.h +++ b/WAAdmobImpl/UserMessagingPlatform.xcframework/ios-arm64/UserMessagingPlatform.framework/Headers/UMPConsentForm.h @@ -11,18 +11,23 @@ typedef void (^UMPConsentFormPresentCompletionHandler)(NSError *_Nullable error); /// A single use consent form object. +NS_SWIFT_NAME(ConsentForm) @interface UMPConsentForm : NSObject + /// Loads a consent form and calls completionHandler on completion. Must be called on the /// main queue. -+ (void)loadWithCompletionHandler:(nonnull UMPConsentFormLoadCompletionHandler)completionHandler; ++ (void)loadWithCompletionHandler:(nonnull UMPConsentFormLoadCompletionHandler)completionHandler + NS_SWIFT_NAME(load(with:)); /// Loads a consent form and immediately presents it from the provided viewController if /// UMPConsentInformation.sharedInstance.consentStatus is UMPConsentStatusRequired. Calls /// completionHandler after the user selects an option and the form is dismissed, or on the next run -/// loop if no form is presented. Must be called on the main queue. -+ (void)loadAndPresentIfRequiredFromViewController:(nonnull UIViewController *)viewController +/// loop if no form is presented. Must be called on the main queue. If viewController is nil, uses +/// the top view controller of the application's main window. ++ (void)loadAndPresentIfRequiredFromViewController:(nullable UIViewController *)viewController completionHandler:(nullable UMPConsentFormPresentCompletionHandler) - completionHandler; + completionHandler + NS_SWIFT_NAME(loadAndPresentIfRequired(from:completionHandler:)); /// Presents a privacy options form from the provided viewController if /// UMPConsentInformation.sharedInstance.privacyOptionsRequirementStatus is @@ -33,20 +38,23 @@ /// This method should only be called in response to a user input to request a privacy options form /// to be shown. The privacy options form is preloaded by the SDK automatically when a form becomes /// available. If no form is preloaded, the SDK will invoke the completionHandler on the next run -/// loop, but will asynchronously retry to load one. -+ (void)presentPrivacyOptionsFormFromViewController:(nonnull UIViewController *)viewController +/// loop, but will asynchronously retry to load one. If viewController is nil, uses the top view +/// controller of the application's main window. ++ (void)presentPrivacyOptionsFormFromViewController:(nullable UIViewController *)viewController completionHandler: (nullable UMPConsentFormPresentCompletionHandler) - completionHandler; + completionHandler + NS_SWIFT_NAME(presentPrivacyOptionsForm(from:completionHandler:)); /// Unavailable. Use +loadWithCompletionHandler: instead. -- (nullable instancetype)init NS_UNAVAILABLE; +- (nonnull instancetype)init NS_UNAVAILABLE; /// Presents the full screen consent form over viewController. The form is dismissed and /// completionHandler is called after the user selects an option. /// UMPConsentInformation.sharedInstance.consentStatus is updated prior to completionHandler being -/// called. completionHandler is called on the main queue. -- (void)presentFromViewController:(nonnull UIViewController *)viewController - completionHandler: - (nullable UMPConsentFormPresentCompletionHandler)completionHandler; +/// called. completionHandler is called on the main queue. If viewController is nil, uses the top +/// view controller of the application's main window. +- (void)presentFromViewController:(nullable UIViewController *)viewController + completionHandler:(nullable UMPConsentFormPresentCompletionHandler)completionHandler + NS_SWIFT_NAME(present(from:completionHandler:)); @end -- Gitblit v1.8.0