Inherits from NSObject
Declared in FBNativeAd.h

Overview

@class FBAdImage

Properties

height

Typed access to the image height.

@property (nonatomic, assign, readonly) NSInteger height

Declared In

FBNativeAd.h

url

Typed access to the image url.

@property (nonatomic, copy, readonly, nonnull) NSURL *url

Declared In

FBNativeAd.h

width

Typed access to the image width.

@property (nonatomic, assign, readonly) NSInteger width

Declared In

FBNativeAd.h

Instance Methods

initWithURL:width:height:

@method

- (instancetype)initWithURL:(NSURL *)url width:(NSInteger)width height:(NSInteger)height

Parameters

url

the image url.

width

the image width.

height

the image height.

Discussion

@abstract This is a method to initialize an FBAdImage.

Declared In

FBNativeAd.h

loadImageAsyncWithBlock:

@method

- (void)loadImageAsyncWithBlock:(nullable void ( ^ ) ( UIImage *__nullable image ))block

Parameters

block

Block to handle the loaded image.

Discussion

@abstract Loads an image from self.url over the network, or returns the cached image immediately.

Declared In

FBNativeAd.h