copyFileDescriptorToPersonalStorage

abstract fun copyFileDescriptorToPersonalStorage(fileDescriptor: RainbowFileDescriptor, hidePurpose: Boolean = false, listener: RainbowListener<RainbowFileDescriptor, FileRepository.CopyFileDescriptorError>? = null)

As a viewer of the RainbowFileDescriptor, upload a copy in the user personal storage

A new RainbowFileDescriptor will be created with the user as owner. Note that it's only possible if the user is currently an active viewer and not the owner of the RainbowFileDescriptor. A copy of the file is put in the user's personal storage.

Parameters

fileDescriptor

RainbowFileDescriptor the RainbowFileDescriptor to be copied to the personal storage space

hidePurpose

Boolean when true, hide the original purpose of the file

listener

RainbowListener<RainbowFileDescriptor, FileRepository.CopyFileDescriptorError> callback (onSuccess, onError)