DownloadOptions

class DownloadOptions

A container for the possible options when creating file links.

DownloadOptions is a immutable container for the allowed options when creating file links through createFileLink, createFileLink or createFileLink.

Instances of the class can be created either the create method or by mutating an existing object by calling newBuilder.

The DEFAULT instance is pre-configured for the most common usage cases.

Types

Builder
Link copied to clipboard
open class Builder
A builder for configuring and creating new DownloadOptions instances.

Functions

contentType
Link copied to clipboard
open fun contentType(): String
create
Link copied to clipboard
open fun create(): DownloadOptions.Builder
Creates new default Builder.
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
forceDownload
Link copied to clipboard
open fun forceDownload(): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
newBuilder
Link copied to clipboard
open fun newBuilder(): DownloadOptions.Builder
Creates Builder from DownloadOptions.
skipFilename
Link copied to clipboard
open fun skipFilename(): Boolean

Properties

DEFAULT
Link copied to clipboard
val DEFAULT: DownloadOptions
The default instance of DownloadOptions.