OlapicMediaEntity Class Reference
| Inherits from | OlapicEntity : NSObject |
| Declared in | OlapicMediaEntity.h |
Properties
Instance Methods
getImageWithSize:onSuccess:onFailure:
Download a media image to an UIImage
- (void)getImageWithSize:(OlapicMediaImageSize)size onSuccess:(void ( ^ ) ( NSData *mediaData , UIImage *mediaImage ))success onFailure:(void ( ^ ) ( NSError *error ))failureParameters
- size
The media image size
- success
A callback block for when the image is successfully retrieved
- failure
A callback block for when the SDK can’t get the image
Availability
v1.0
Declared In
OlapicMediaEntity.hgetMediaURLForImageSize:
Get the URL of one of the sizes of the media if it’s an image
- (NSString *)getMediaURLForImageSize:(OlapicMediaImageSize)sizeParameters
- size
The image size
Return Value
NSString with the image URL
Availability
v1.0
Declared In
OlapicMediaEntity.hgetRelatedStreams:onFailure:
Get streams related to this media
- (void)getRelatedStreams:(void ( ^ ) ( NSDictionary *streams ))success onFailure:(void ( ^ ) ( NSError *error ))failureParameters
- success
A callback block for when the streams are successfully retrieved
- failure
A callback block for when the SDK can’t get the streams
Availability
v1.0
Declared In
OlapicMediaEntity.hgetUploader:onFailure:
Get an uploader entity from a media
- (void)getUploader:(void ( ^ ) ( OlapicUploaderEntity *uploader ))success onFailure:(void ( ^ ) ( NSError *error ))failureParameters
- success
A callback block for when the uploader is successfully retrieved
- failure
A callback block for when the SDK can’t get the uploader
Availability
v1.0
Declared In
OlapicMediaEntity.hisVideo
Check if the media is a video
- (BOOL)isVideoReturn Value
BOOL
Availability
v1.0
Declared In
OlapicMediaEntity.hreport:onSuccess:onFailure:
Report this media
- (void)report:(NSDictionary *)metadata onSuccess:(void ( ^ ) ( void ))success onFailure:(void ( ^ ) ( NSError *error ))failureParameters
- metadata
A list with the report information
- email: The email of the user who wants to report the media
- reason: The reason why the media will be reported
- success
A callback block for when the media is successfully reported
- failure
A callback block for when the SDK can’t report the media
Availability
v1.0
Declared In
OlapicMediaEntity.h