LoadResult

public struct LoadResult : Equatable

Describes the result of a load call.

Returned by the LoadDelegate protocol in its load methods.

  • A collection of the waterfall instances and their results involved during the load call.

    Declaration

    Swift

    public let instanceResults: [InstanceResult]
  • An identifier for the waterfall used in the current load call.

    Declaration

    Swift

    public let waterfallId: String
  • An identifier for the current load call. Useful to track the progress of the ad lifecycle flow.

    Declaration

    Swift

    public let lifecycleId: String
  • A dictionary containing any extra values. Usually empty.

    Declaration

    Swift

    public let extras: [String : Any]
  • Declaration

    Swift

    public static func == (lhs: LoadResult, rhs: LoadResult) -> Bool
  • If the load result was successful, returns an instance of SuccessResult, otherwise nil.

    Declaration

    Swift

    var success: SuccessResult? { get }
  • If the load result was successful, returns the position of the successful instance in the waterfall. Otherwise, returns nil.

    Declaration

    Swift

    var winnerPosition: Int? { get }
  • The amount of time the load call used to try to load an ad.

    Declaration

    Swift

    var latency: TimeInterval { get }