One Logo Pool Ball
PhotosUI · IOS API REFERENCE

PHPickerViewController

class · iOS 14.0+ · SDK 27.1

class PHPickerViewController

Members (10)

method · iOS 16.0+

deselectAssets

TypeScript
deselectAssets(identifiers: Array<string>): Promise<void>
Swift declaration
func deselectAssets(withIdentifiers identifiers: [String])
method · iOS 16.0+

moveAsset

TypeScript
moveAsset(identifier: string, afterIdentifier?: (string) | null): Promise<void>
Swift declaration
func moveAsset(withIdentifier identifier: String, afterAssetWithIdentifier afterIdentifier: String?)
method · iOS 17.0+

scrollToInitialPosition

TypeScript
scrollToInitialPosition(): Promise<void>
Swift declaration
func scrollToInitialPosition()
method · iOS 17.0+

zoomIn

TypeScript
zoomIn(): Promise<void>
Swift declaration
func zoomIn()
method · iOS 17.0+

zoomOut

TypeScript
zoomOut(): Promise<void>
Swift declaration
func zoomOut()
method · iOS 17.0+

updatePicker

TypeScript
updatePicker(configuration: PHPickerConfiguration_Update): Promise<void>
Swift declaration
@MainActor @preconcurrency func updatePicker(using configuration: PHPickerConfiguration.Update)

Updates the picker using the configuration.

get · iOS 14.0+

configuration

TypeScript
get configuration(): Promise<PHPickerConfiguration>
Swift declaration
@MainActor @preconcurrency var configuration: PHPickerConfiguration { get }

The configuration passed in during initialization.

init · iOS 14.0+

init

TypeScript
static init(configuration: PHPickerConfiguration): Promise<PHPickerViewController>
Swift declaration
@MainActor @preconcurrency convenience init(configuration: PHPickerConfiguration)

Initializes a new picker with the `configuration` the picker should use.

get · iOS 14.0+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
@MainActor @preconcurrency weak var delegate: (any PHPickerViewControllerDelegate)? { get set }

The delegate to be notified.

set · iOS 14.0+

delegate

TypeScript
setDelegate(value?: (Implements<PHPickerViewControllerDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
@MainActor @preconcurrency weak var delegate: (any PHPickerViewControllerDelegate)? { get set }

The delegate to be notified.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PHPickerViewController.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All PhotosUI types →