ALNativeAdPrecacheDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ALNativeAdPrecacheDelegate.h |
– nativeAdService:didPrecacheImagesForAd:
required method
This method is invoked when the image resources of a native ad finish precaching.
- (void)nativeAdService:(ALNativeAdService *)service didPrecacheImagesForAd:(ALNativeAd *)ad
Parameters
service |
Native ad service which loaded the ad. |
---|---|
ad |
Ad in which resources finished precaching. |
Discussion
This method is invoked when the image resources of a native ad finish precaching.
Declared In
ALNativeAdPrecacheDelegate.h
– nativeAdService:didPrecacheVideoForAd:
required method
This method is invoked when the video of a native ad finishes precaching.
- (void)nativeAdService:(ALNativeAdService *)service didPrecacheVideoForAd:(ALNativeAd *)ad
Parameters
service |
Native ad service which loaded the ad. |
---|---|
ad |
Ad in which video resource finished precaching. |
Discussion
This method is invoked when the video of a native ad finishes precaching.
Note that if the ad does not contain a video, this callback will not be invoked.
Declared In
ALNativeAdPrecacheDelegate.h
– nativeAdService:didFailToPrecacheImagesForAd:withError:
required method
This method is invoked when precaching image resources fails.
- (void)nativeAdService:(ALNativeAdService *)service didFailToPrecacheImagesForAd:(ALNativeAd *)ad withError:(NSInteger)errorCode
Parameters
service |
Native ad service which loaded the ad. |
---|---|
ad |
Ad in which resources finished precaching. |
errorCode |
An error code corresponding with a constant defined in |
Discussion
This method is invoked when precaching image resources fails.
Declared In
ALNativeAdPrecacheDelegate.h
– nativeAdService:didFailToPrecacheVideoForAd:withError:
required method
This method is invoked when precaching a video fails.
- (void)nativeAdService:(ALNativeAdService *)service didFailToPrecacheVideoForAd:(ALNativeAd *)ad withError:(NSInteger)errorCode
Parameters
service |
Native ad service which loaded the ad. |
---|---|
ad |
Ad in which resources finished precaching. |
errorCode |
An error code corresponding with a constant defined in |
Discussion
This method is invoked when precaching a video fails.
Note that if the ad does not contain a video, this callback will not be invoked.
Declared In
ALNativeAdPrecacheDelegate.h