Skip to main content

createFileMessageFromFullPath

Feature Introduction

Description

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

Function Prototype


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

Input Parameters

Parameter NameData TypeRequiredDescription
filePathNSStringYesAbsolute path
fileNameNSStringYesFile name

Return Value

NameTypeDescription
messageOIMMessageInfoSuccessful return

Code Example


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