Skip to main content

createImageMessageFromFullPath

Feature Introduction

Note

Create an image message. The SDK internally extracts the image information from the full path and creates an image message.

Function Prototype

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

Input Parameters

Parameter NameParameter TypeMandatoryDescription
imagePathNSStringYesAbsolute path

Return Value

NameTypeDescription
messageOIMMessageInfoSuccessful return

Code Example

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