Skip to content

ADAssetSelectOptions

duzexu edited this page Nov 15, 2021 · 3 revisions

ADAssetSelectOptions

Options to control the asset select condition and ui.

public struct ADAssetSelectOptions: OptionSet 

Inheritance

OptionSet

Initializers

init(rawValue:)

public init(rawValue: Int) 

Properties

rawValue

public let rawValue: Int

mixSelect

Whether photos and videos can be selected together.

public static let mixSelect 

selectAsGif

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

public static let selectAsGif 

selectAsLivePhoto

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

public static let selectAsLivePhoto 

slideSelect

You can slide select photos in album.

public static let slideSelect 

autoScroll

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

public static let autoScroll 

allowTakePhotoAsset

Allow take photo asset in the album.

public static let allowTakePhotoAsset 

allowTakeVideoAsset

Allow take video asset in the album.

public static let allowTakeVideoAsset 

captureOnTakeAsset

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

public static let captureOnTakeAsset 

allowAddAsset

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

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

allowAuthTips

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

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

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).

public static let allowBrowser 

thumbnailToolBar

Allow toolbar in thumbnail controller.

public static let thumbnailToolBar 

`default`

Default options.

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

exclusive

Options do not allow mix select.

public static let exclusive: ADAssetSelectOptions = [.slideSelect,.autoScroll,.allowTakePhotoAsset,.thumbnailToolBar,.allowBrowser]
Types
Protocols
Global Typealiases
Operators
Extensions
Clone this wiki locally