Class AdResponseParseHelperKt
-
- All Implemented Interfaces:
public final class AdResponseParseHelperKt
-
-
Method Summary
Modifier and Type Method Description final static UnitvalidateOnAdResponseParseSuccess(AdManagerComponent adManagerComponent, AdResponse adResponse, Function2<AdComponent, InMobiJsonResponse, Unit> onSuccess, Function1<Short, Unit> onFailure)Validates and processes an ad response for successful parsing. -
-
Method Detail
-
validateOnAdResponseParseSuccess
final static Unit validateOnAdResponseParseSuccess(AdManagerComponent adManagerComponent, AdResponse adResponse, Function2<AdComponent, InMobiJsonResponse, Unit> onSuccess, Function1<Short, Unit> onFailure)
Validates and processes an ad response for successful parsing. This function extracts ad components and validates the response format before executing callbacks.
- Parameters:
adManagerComponent- The ad manager component containing context and configuration.adResponse- The ad response to validate and process.onSuccess- Callback executed when validation succeeds, receives the ad component and JSON response.onFailure- Callback executed when validation fails, receives the error code.
-
-
-
-