NativeAssetImage

@objcMembers
public class NativeAssetImage : NativeAsset

Represents an image asset in a native ad.

  • The type of the image asset.

    Declaration

    Swift

    public var type: ImageAsset?
  • The width of the image asset.

    Declaration

    Swift

    public var width: Int?
  • The minimum width of the image asset.

    Declaration

    Swift

    public var widthMin: Int?
  • The height of the image asset.

    Declaration

    Swift

    public var height: Int?
  • The minimum height of the image asset.

    Declaration

    Swift

    public var heightMin: Int?
  • The MIME types supported for the image asset.

    Declaration

    Swift

    public var mimes: Array<String>?
  • ext

    Additional custom properties for the image asset.

    Declaration

    Swift

    public var ext: AnyObject?
  • Initializes a new instance of NativeAssetImage.

    Declaration

    Swift

    public convenience init(minimumWidth: Int, minimumHeight: Int, required: Bool)

    Parameters

    minimumWidth

    The minimum width of the image.

    minimumHeight

    The minimum height of the image.

    required

    A boolean indicating whether the asset is required.

  • Initializes a new instance of NativeAssetImage.

    Declaration

    Swift

    public override init(isRequired: Bool)

    Parameters

    isRequired

    A boolean indicating whether the asset is required.