Type Definitions

The following type definitions are available globally.

  • The completion block that will be called when the native ad request is finished.

    • If the ad loading is successful, the ad object will be non null and can be used.
    • If the ad loading fails, the ad object will be nil and the error object will be defined for a description of the loading issue.

    Declaration

    Objective-C

    typedef void (^SASNativeRequestCompletionBlock)(SASNativeAd *_Nullable,
                                                    NSError *_Nullable)

    Swift

    typealias SASNativeRequestCompletionBlock = (SASNativeAd?, (any Error)?) -> Void