One Logo Pool Ball
UIKit · IOS API REFERENCE

UIPreviewAction

class · iOS 9.0+ · Deprecated in iOS 13.0 · SDK 27.1

@MainActor class UIPreviewAction

Members (2)

init · iOS 9.0+ · Deprecated in iOS 13.0

init

TypeScript
static init(title: string, style: UIPreviewAction_Style, handler: ((arg0: UIPreviewAction, arg1: UIViewController) => void)): Promise<UIPreviewAction>
Swift declaration
convenience init(title: String, style: UIPreviewAction.Style, handler: @escaping (UIPreviewAction, UIViewController) -> Void)
get · iOS 9.0+ · Deprecated in iOS 13.0

handler

TypeScript
get handler(): Promise<((arg0: SDKHandle, arg1: UIViewController) => Promise<void>)>
Swift declaration
var handler: (any UIPreviewActionItem, UIViewController) -> Void { get }

Skipped declarations

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

UIPreviewAction.init()

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

All UIKit types →