Filestack Documentation

Class Cloud​Source

@objc(FSCloudSource) public class CloudSource: NSObject, CellDescriptibleSource  

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

CloudSource CloudSource NSObject NSObject CloudSource->NSObject CellDescriptibleSource CellDescriptibleSource CloudSource->CellDescriptibleSource

Conforms To

NSObject

Initializers

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

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

Initializer for a CloudSource.

Parameters

description String

A String describing the cloud source.

image UIImage

An UIImage visually describing the cloud source.

provider Cloud​Provider

A CloudProvider that better represents the cloud source.

Properties

facebook

@objc public static var facebook  

Facebook

instagram

@objc public static var instagram  

Instagram

google​Drive

@objc public static var googleDrive  

Google Drive

dropbox

@objc public static var dropbox  

Dropbox

box

@objc public static var box  

Box

git​Hub

@objc public static var gitHub  

GitHub

gmail

@objc public static var gmail  

Gmail

google​Photos

@objc public static var googlePhotos  

Google Photos

one​Drive

@objc public static var oneDrive  

OneDrive

amazon​Drive

@objc public static var amazonDrive  

Amazon Drive

unsplash

@objc public static var unsplash  

Unsplash

custom​Source

@objc public static var customSource  

Custom Source

description

override public var description: String  

Returns a String representation of self.

Methods

all()

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

Returns all the supported sources.

title()

@objc public static func title() -> String  

Returns this source's title.