NetmeraMedia Class Reference
| Inherits from | NSObject |
| Declared in | NetmeraMedia.h NetmeraMedia.m |
Overview
NetmeraMedia object is used to create media content.
Its constructor is used to create different types of media content.
Tasks
-
dataNSData that holds image data
property -
urlPath of the media
property -
– initWithData:Constructor that takes byte array as a parameter and creates NetmeraMedia object.
-
– getUrlWithPhotoSize:Returns the URL of file with the given size.
-
– getDataReturns the data of file with the default size.
-
– getDataWithPhotoSize:Returns the data of file with the given size.
Properties
Instance Methods
getData
Returns the data of file with the default size.
- (NSData *)getDataReturn Value
NSData of the photo.
Discussion
Returns the data of file with the default size.
Declared In
NetmeraMedia.hgetDataWithPhotoSize:
Returns the data of file with the given size.
- (NSData *)getDataWithPhotoSize:(enum PhotoSize)sizeParameters
- size
PhotoSize object
Return Value
NSData of the photo with the given size.
Discussion
Returns the data of file with the given size.
Warning: Available enum options for photo size
DEFAULT, The original image size
THUMBNAIL, Image size as 41x41
SMALL, Image size as 82x82
MEDIUM, Image size as 180x250
LARGE, Image size as 300x350
Declared In
NetmeraMedia.hgetUrlWithPhotoSize:
Returns the URL of file with the given size.
- (NSURL *)getUrlWithPhotoSize:(enum PhotoSize)sizeParameters
- size
PhotoSize object
Return Value
NSURL of the photo with the given size.
Discussion
Returns the URL of file with the given size.
Warning: Available enum options for photo size
DEFAULT, The original image size
THUMBNAIL, Image size as 41x41
SMALL, Image size as 82x82
MEDIUM, Image size as 180x250
LARGE, Image size as 300x350
Declared In
NetmeraMedia.hinitWithData:
Constructor that takes byte array as a parameter and creates NetmeraMedia object.
- (NetmeraMedia *)initWithData:(NSData *)dataParameters
- data
The image’s data
Discussion
Constructor that takes byte array as a parameter and creates NetmeraMedia object.
Declared In
NetmeraMedia.h