ADPhotoKit Documentation

Enumeration ADPhoto​Manager.​Asset​Result​Type

public enum AssetResultType  

Type of fetch result.

Member Of

ADPhotoManager

Main manager class of ADPhotoKit Core. It provide a set of convenience methods to fetch asset from system album. You can use this class to fetch or save asset.

Enumeration Cases

image

case image(size: CGSize?, resizeMode: PHImageRequestOptionsResizeMode = .fast, synchronous: Bool = false) 

Fetch result by UIImage.

Parameters

size

Size of the image fetch, If nil, will fetch original image.

resize​Mode

Image resize mode.

synchronous

Return only a single result, blocking until available (or failure).

origin​Image​Data

case originImageData

Fetch result by original Data.

live​Photo

case livePhoto

Fetch result by PHLivePhoto.

video

case video

Fetch result by AVPlayerItem.

assert

case assert

Fetch result by AVAsset.

file​Path

case filePath

Fetch result by filePath.