POBNativeRequestImageAsset Class Reference
Inherits from | NSObject |
---|---|
Conforms to | POBNativeRequestAsset |
Declared in | POBNativeRequestImageAsset.h |
type
Optional parameter. Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format.
@property (nonatomic, readonly) POBNativeImageAssetType type
Declared In
POBNativeRequestImageAsset.h
wmin
Recommended parameter. The minimum requested width of the image in pixels. This option should be used for any rescaling of images by the client. Either w or wmin should be transmitted. If only w is included, it should be considered an exact requirement.
@property (nonatomic, readonly) NSInteger wmin
Declared In
POBNativeRequestImageAsset.h
hmin
Recommended parameter. The minimum requested height of the image in pixels. This option should be used for any rescaling of images by the client. Either h or hmin should be transmitted. If only h is included, it should be considered an exact requirement.
@property (nonatomic, readonly) NSInteger hmin
Declared In
POBNativeRequestImageAsset.h
mimes
Whitelist of content MIME types supported. Popular MIME types include, but are not limited to “image/jpg”, “image/gif”. If not set, defaultSupportedMimeTypes will be used.
@property (nonatomic, strong) NSArray<NSString*> *mimes
Declared In
POBNativeRequestImageAsset.h
– initWithId:required:type:minimumWidth:minimumHeight:
Initializer
- (instancetype)initWithId:(NSInteger)assetId required:(BOOL)required type:(POBNativeImageAssetType)type minimumWidth:(NSInteger)wmin minimumHeight:(NSInteger)hmin
Parameters
assetId |
Unique asset ID, assigned by exchange. Typically a counter for the array. |
---|---|
required |
Set to YES if asset is required |
type |
Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format. |
wmin |
The minimum requested width of the image in pixels |
hmin |
The minimum requested height of the image in pixels |
Return Value
Instance of POBNativeRequestImageAsset
Declared In
POBNativeRequestImageAsset.h