MXToolkit Class Reference

Inherits from NSObject
Declared in MXToolkit.h

Overview

The MXToolkit class provides interfaces for user to import files to related chat.

– saveFileToChat:filePath:name:completionHandler:

Import a file to a chat.

- (void)saveFileToChat:(MXChat *)chat filePath:(NSString *)filePath name:(NSString *)fileName completionHandler:(void ( ^ _Nullable ) ( NSError *_Nullable errorOrNil ))completionHandler

Parameters

chat

target chat

filePath

The file local path

fileName

The file name to save as

completionHandler

A block to be executed when the action completes.

Declared In

MXToolkit.h