Other chat features
#
Delete local media fileTo enable/disable the deletion of the associated media file in the app's document folder when we delete a media message call the below method.
Argument | Type | Description |
---|---|---|
DELETE_MEDIA | Bool | Maximum amount of a recent chat that can be pinned |
#
Hide Notification ContentTo be in Compliance with Hipaa and other Security guidelines, sdk provides method to hide the title and content of the push notifations. By calling the below method we can hide the notification content.
Argument | Type | Description |
---|---|---|
HIDE | Bool | if true content will be hidden and shown as New Message |
#
Process VideoSlow motion videos captured by iOS devices has to be processed before sending a video message to support cross-platform messaging. For normal video nothing will be processed and it's URL will be returned in completion handler. Call the below method to process a video.
Argument | Type | Description |
---|---|---|
PHASSET | PHAsset | PHAsset file object |
Variable | Type | Description |
---|---|---|
PHASSET | PHAsset | PHAsset file object to be processed |
STATUS | MediaStatus | an enum type to reflect status of the processing |
PROCESSED_VIDEO_URL | URL | URL of the video |
IS_SLOMO_VIDEO | Boolean | true if it's a slomo video |
#
Compress ImageTo compress and get the metadata of an image call the below method.
Argument | Type | Description |
---|---|---|
DATA | Data | Data of the uncompressed image to be compressed |
MEDIA_QUALITY | MediaQuality | Output quality of the compressed image |
COMPLETION_HANDLER | (Bool,Data?,String,URL?,String, Double, String?) | tuple completion handler |
Variable | Type | Description |
---|---|---|
IS_SUCCESS | Boolean | true if compression is success else false |
DATA | Data | Data of the compressed image |
FILENAME | String | name of the compressed image |
URL | URL | URL of the compressed image |
FILEKEY | Boolean | key of the compressed ecnrypted image if encryption is enabled |
FILESIZE | Double | Size of the compressed image in bytes |
ERRORMESSAGE | String | Error reason message for the processing failure |
Note : Default media quality for Image compression is medium.
info
MediaUtils.compressImage() method was deprecated and will be removed in the future releases, migrate to above method to process Image files.
#
Compress VideoTo compress and get the metadata of a video call the below method.
Argument | Type | Description |
---|---|---|
PROCESSED_VIDEO_URL | Data | URL of the video to be compressed |
MEDIA_QUALITY | MediaQuality | Output quality of the compressed video |
COMPLETION_HANDLER | (Bool, URL?, String, String, Double, Double, String) | tuple completion handler |
Variable | Type | Description |
---|---|---|
IS_SUCCESS | Boolean | true if compression is success else false |
URL | URL | URL of the compressed video |
FILENAME | String | Name of the compressed video file |
FILEKEY | String | key of the compressed ecnrypted video if encryption is enabled |
FILESIZE | Double | Size of the compressed video in bytes |
DURATION | Double | Duration of the compressed video |
ERRORMESSAGE | String | Error reason message for the processing failure |
Note : Default media quality for video compression is medium.
info
MediaUtils.compressVideo() method was deprecated and will be removed in the future releases, migrate to above method to process video files.
#
Process AudioTo process and get the metadata of an audio file call the below method.
Argument | Type | Description |
---|---|---|
AUDIO_URL | URL | URL of the audio asset file to be processed |
MAX_SIZE | Double | validation size for maximum audio file size(default 30MB) |
COMPLETION_HANDLER | (Bool, String,URL?, Double, Double, String, String) | tuple completion handler |
Variable | Type | Description |
---|---|---|
IS_SUCCESS | Boolean | true if processing is success else false |
FILENAME | String | Name of the processed audio file |
SAVED_FILE_URL | URL | URL of the processed and saved audio file |
FILESIZE | Double | Size of the processed audio in bytes |
DURATION | Double | Duration of the processed audio |
FILEKEY | String | Key of the processed ecnrypted audio if encryption is enabled |
ERRORMESSAGE | String | Error reason message for the processing failure |
info
MediaUtils.processAudio() method was deprecated and will be removed in the future releases, migrate to above method to process audio files.
#
Process DocumentTo process and get the metadata of a document file call the below method.
Argument | Type | Description |
---|---|---|
DOCUMENT_URL | URL | URL of the document file to be processed |
MAX_SIZE | Double | validation size for maximum Document file size(default 20MB) |
COMPLETION_HANDLER | (Bool, URL?,Double,String,String,String) | tuple completion handler |
Variable | Type | Description |
---|---|---|
IS_SUCCESS | Boolean | true if processing is success else false |
SAVED_FILE_URL | URL | URL of the processed and saved document file |
FILESIZE | Double | Size of the processed document in bytes |
FILENAME | String | Name of the processed document file |
FILEKEY | String | Key of the processed ecnrypted document if encryption is enabled |
ERRORMESSAGE | String | Error reason message for the processing failure |
info
MediaUtils.processDocument() method was deprecated and will be removed in the future releases, migrate to above method to process Document files.
#
Get MetaData of userTo get MetaData value of user call the below method.
Argument | Type | Description |
---|---|---|
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |
#
Update MetaData of userTo Update MetaData value of user call the below method.
Argument | Type | Description |
---|---|---|
META_DATA | [MetaData] | list of key - value pair of metadata object. Maximum size is 3 (optional) |
CALLBACK | FlyCompletionHandler | FlyCompletionHandler used as completion Handler |