Skip to main content

createImageMessageFromFullPath

Description​

info

Create an image message. The SDK extracts image information based on the absolute path and creates the image message internally.

Function Prototype​


+ (OIMMessageInfo *)createImageMessageFromFullPath:(NSString *)imagePath;

Input Parameters​

Parameter NameParameter TypeRequiredDescription
imagePathNSStringYesAbsolute path

Return Result​

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example​


OIMMessageInfo *message = [OIMMessageInfo createImageMessageFromFullPath:@""];