createFileLink

abstract fun createFileLink(options: DownloadOptions): FileLink

Create a file link for this file

The method will block until the link is created or an exception is thrown.

Return

a FileLink for this file.

Parameters

options

DownloadOptions to be used creating the link. Must not be null.

Throws

on a network error

if error code is returned from pCloud's API

on a null options argument.


abstract fun createFileLink(): FileLink

Create a file link for this file

The method will block until the link is created or an exception is thrown.

Return

a FileLink for this file.

Throws

on a network error

if error code is returned from pCloud's API