// Select the media from the image picker// @param model Configuration// @param parentVC The view controller from which to present the picker// @param completionBlock A block that returns the selected media data upon completion, accepting TMAPickerImageModel or TMAPickerVideoModel based on the selection.- (void)selectMediaFromPickerWithModel:(TMAMediaChooseConfigModel *)modelparentVC:(UIViewController *)parentVCcompletionBlock:(void(^)(NSArray * _Nullable medias, NSError * _Nullable error))completionBlock;// Capture media using the camera// @param model Configuration// @param parentVC The view controller from which to present the camera// @param completionBlock A block that returns the captured media data upon completion, accepting TMACameraImageModel or TMACameraVideoModel based on the selection- (void)selectMediaFromCameraWithModel:(TMAMediaChooseConfigModel *)modelparentVC:(UIViewController *)parentVCcompletionBlock:(void(^)(id _Nullable media, NSError * _Nullable error))completionBlock;// Get the image data from a PHAsset// @param phAsset The media object// @param needCompress - Whether compression is required- (NSData *)imageDataFromPhAsset:(PHAsset *)phAsset needCompress:(BOOL)needCompress;
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback