FileDx class Files
Groups file methods together.
Available as PubNub.files. Introduced with File API.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decryptFile(
List< int> bytes, {CipherKey? cipherKey, Keyset? keyset, String? using}) → List<int> - Decrypts file content in bytes format.
-
deleteFile(
String channel, String fileId, String fileName, {Keyset? keyset, String? using}) → Future< DeleteFileResult> -
Deletes file with
fileId
andfileName
fromchannel
. -
downloadFile(
String channel, String fileId, String fileName, {CipherKey? cipherKey, Keyset? keyset, String? using}) → Future< DownloadFileResult> -
This method allows to download the file with
fileId
andfileName
from channelchannel
It returns file content in bytes formatList<int>
. -
encryptFile(
List< int> bytes, {CipherKey? cipherKey, Keyset? keyset, String? using}) → List<int> - Encrypts file content in bytes format.
-
getFileUrl(
String channel, String fileId, String fileName, {Keyset? keyset, String? using}) → Uri -
Returns Uri to download the file with
fileId
andfileName
fromchannel
. -
listFiles(
String channel, {int? limit, String? next, Keyset? keyset, String? using}) → Future< ListFilesResult> -
Lists all files in a
channel
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publishFileMessage(
String channel, FileMessage message, {bool? storeMessage, int? ttl, dynamic meta, CipherKey? cipherKey, String? customMessageType, Keyset? keyset, String? using}) → Future< PublishFileMessageResult> - Allows to publish file message.
-
sendFile(
String channel, String fileName, List< int> file, {CipherKey? cipherKey, dynamic fileMessage, bool? storeFileMessage, int? fileMessageTtl, String? customMessageType, dynamic fileMessageMeta, Keyset? keyset, String? using}) → Future<PublishFileMessageResult> -
This method allows to send a
file
to achannel
with an optionalfileMessage
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited