FBAdImage Class Reference
Inherits from | NSObject |
Declared in | FBNativeAd.h |
Tasks
-
url
property -
width
property -
height
property -
– initWithURL:width:height:
-
– loadImageAsyncWithBlock:
Properties
height
Typed access to the image height.
@property (nonatomic, assign, readonly) NSInteger height
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