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 typeDeclared 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 wminDeclared 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 hminDeclared 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*> *mimesDeclared In
POBNativeRequestImageAsset.h
– initWithType:required:minimumWidth:minimumHeight:
Initializer. It internally sets the OpenWrap SDK specific asset id to the asset.
- (instancetype)initWithType:(POBNativeImageAssetType)type required:(BOOL)required minimumWidth:(NSInteger)wmin minimumHeight:(NSInteger)hminParameters
type |
Type ID of the image element supported by the publisher. The publisher can display this information in an appropriate format. |
|---|---|
required |
Set to YES if asset is required |
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