ADPhotoKit Documentation

Structure ADAsset​Select​Options

public struct ADAssetSelectOptions: OptionSet  

Options to control the asset select condition and ui.

%131 ADAssetSelectOptions ADAssetSelectOptions OptionSet OptionSet ADAssetSelectOptions->OptionSet

Conforms To

OptionSet

Initializers

init(raw​Value:​)

public init(rawValue: Int)  

Properties

raw​Value

public let rawValue: Int

mix​Select

public static let mixSelect  

Whether photos and videos can be selected together.

select​AsGif

public static let selectAsGif  

Allow select Gif, it only controls whether it is displayed in Gif form.

select​AsLive​Photo

public static let selectAsLivePhoto  

Allow select LivePhoto, it only controls whether it is displayed in LivePhoto form.

slide​Select

public static let slideSelect  

You can slide select photos in album.

auto​Scroll

public static let autoScroll  

If slideSelect contain, Will auto scroll to top or bottom when your finger at the top or bottom.

allow​Take​Photo​Asset

public static let allowTakePhotoAsset  

Allow take photo asset in the album.

allow​Take​Video​Asset

public static let allowTakeVideoAsset  

Allow take video asset in the album.

capture​OnTake​Asset

public static let captureOnTakeAsset  

Show the image captured by the camera is displayed on the camera button inside the album.

allow​Add​Asset

@available(iOS 14, *)
    public static let allowAddAsset  

If user choose limited Photo mode, a button with '+' will be added. It will call PHPhotoLibrary.shared().presentLimitedLibraryPicker(from:) to add photo.

allow​Auth​Tips

@available(iOS 14, *)
    public static let allowAuthTips  

iOS14 limited Photo mode, will show collection footer view in ADThumbnailViewController. Will go to system setting if clicked.

allow​Browser

public static let allowBrowser  

Allow access to the browse large image interface (That is, whether to allow access to the large image interface after clicking the thumbnail image).

thumbnail​Tool​Bar

public static let thumbnailToolBar  

Allow toolbar in thumbnail controller.

`default`

public static let `default`: ADAssetSelectOptions = [.mixSelect,.slideSelect,.autoScroll,.allowTakePhotoAsset,.thumbnailToolBar,.allowBrowser] 

Default options.

exclusive

public static let exclusive: ADAssetSelectOptions = [.slideSelect,.autoScroll,.allowTakePhotoAsset,.thumbnailToolBar,.allowBrowser] 

Options do not allow mix select.