Filestack Documentation

Class Local​Source

@objc(FSLocalSource) public class LocalSource: NSObject, CellDescriptibleSource  

Represents a type of local source to be used in the picker.

LocalSource LocalSource NSObject NSObject LocalSource->NSObject CellDescriptibleSource CellDescriptibleSource LocalSource->CellDescriptibleSource

Conforms To

NSObject

Initializers

init(description:​image:​provider:​)

@objc public init(description: String, image: UIImage, provider: LocalProvider)  

Initializer for a LocalSource accepting a LocalProvider.

Parameters

description String

A String describing the local source.

image UIImage

An UIImage visually describing the local source.

provider Local​Provider

A LocalProvider that better represents the local source.

init(description:​image:​source​Provider:​)

public init(description: String, image: UIImage, sourceProvider: SourceProvider)  

Initializer for a LocalSource accepting a SourceProvider.

Parameters

description String

A String describing the local source.

image UIImage

An UIImage visually describing the local source.

source​Provider Source​Provider

A SourceProvider that presents a custom user-provided view controller.

Properties

camera

@objc public static var camera  

Camera

photo​Library

@objc public static var photoLibrary  

Photo Library

documents

@objc public static var documents  

Documents

Methods

all()

@objc public static func all() -> [LocalSource]  

Returns all the supported sources.

title()

@objc public static func title() -> String  

Returns this source's title.

custom(description:​image:​provider:​)

public static func custom(description: String, image: UIImage, provider: SourceProvider) -> LocalSource  

Returns an user-provided local source that uses a custom SourceProvider.