FBAdImage
Versi yang lebih baru dari kelas ini sudah tersedia. Lihat versi terbaru.

Represents an image creative.

Superclass:NSObject
Declared in:FBAdImage.h
Properti
height

Typed access to the image height.

@property (nonatomic, assign, readonly) NSInteger height;
Dinyatakan dalam: FBAdImage.h
url

Typed access to the image url.

@property (nonatomic, copy, readonly, nonnull) NSURL *url;
Dinyatakan dalam: FBAdImage.h
width

Typed access to the image width.

@property (nonatomic, assign, readonly) NSInteger width;
Dinyatakan dalam: FBAdImage.h
Metode Instans
initWithURL:width:height:

This is a method to initialize an FBAdImage.

ParameterKeterangan
url

The image url.

width

The image width.

height

The image height.

- (instancetype)
initWithURL: (NSURL *)url
width: (NSInteger)width
height: (NSInteger)height
NS_DESIGNATED_INITIALIZER;
Dinyatakan dalam: FBAdImage.h
loadImageAsyncWithBlock:

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

ParameterKeterangan
block

Block to handle the loaded image.

- (void) loadImageAsyncWithBlock:(nullable void(^)(UIImage * __nullable image))block;
Dinyatakan dalam: FBAdImage.h