Filestack Documentation

Class Fallback​Transform

public class FallbackTransform: Transform  

Returns default file if the source of the transformation does not work or the transformation fails.

FallbackTransform FallbackTransform Transform Transform FallbackTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a FallbackTransform object.

Methods

handle(_:​)

@discardableResult
    func handle(_ value: String) -> Self  

Adds the handle option.

Parameters

value String

the HANDLE of the file that should be returned.

cache(_:​)

@discardableResult
    func cache(_ value: Int) -> Self  

Adds the cache option.

Parameters

value Int

The number of seconds fallback response should be cached in CDN.