HDwallpaper/HD wallpaper/FW/AppLovinSDK.xcframework/ios-arm64/AppLovinSDK.framework/Headers/ALPostbackDelegate.h
2024-07-03 17:31:03 +08:00

41 lines
1.4 KiB
Objective-C

//
// ALPostbackDelegate
// AppLovinSDK
//
// Copyright © 2020 AppLovin Corporation. All rights reserved.
//
@class ALPostbackService;
NS_ASSUME_NONNULL_BEGIN
/**
* This protocol allows you to monitor the dispatching of postbacks to a developer-specified URL by the postback service.
*/
@protocol ALPostbackDelegate <NSObject>
/**
* Indicates that a postback dispatched to a given URL completed successfully.
*
* Success means having received a 2<var>xx</var> response code from the remote endpoint.
*
* @param postbackService The postback service that made the postback call.
* @param postbackURL The URL that was notified.
*/
- (void)postbackService:(ALPostbackService *)postbackService didExecutePostback:(NSURL *)postbackURL;
/**
* Indicates that a postback dispatched to a given URL has failed.
*
* Failure means having received a response code outside the 2<var>xx</var> range, or having been unable to establish a connection.
*
* @param postbackService The postback service that attempted the postback call.
* @param postbackURL The URL to which the notification attempt was made.
* @param errorCode The HTTP status code received, if any; otherwise one of the negative constants defined in ALErrorCodes.h.
*/
- (void)postbackService:(ALPostbackService *)postbackService didFailToExecutePostback:(nullable NSURL *)postbackURL errorCode:(NSInteger)errorCode;
@end
NS_ASSUME_NONNULL_END