Skip to main content

createFileMessageFromFullPath

Description

info

Create a file message. The SDK extracts file information based on the absolute path and creates the file message internally.

Function Prototype


+ (OIMMessageInfo *)createFileMessageFromFullPath:(NSString *)filePath
fileName:(NSString *)fileName;

Input Parameters

Parameter NameParameter TypeRequiredDescription
filePathNSStringYesAbsolute path
fileNameNSStringYesFile name

Return Result

NameTypeDescription
messageOIMMessageInfoSuccess return

Code Example


OIMMessageInfo *message = [OIMMessageInfo createFileMessageFromFullPath:@"" fileName:@""];