SDKsAndroid
Create a file message
Create a file message from a path relative to the SDK data directory.
Message message = OpenIMClient.getInstance().messageManager
.createFileMessage(filePath, fileName);The file must be stored under the data directory configured during SDK initialization. Pass its path relative to that directory; fileName is displayed to recipients. This method only creates an object waiting to be sent.
Was this page helpful?