shared
TypeScriptstatic get shared(): BADownloadManagerSwift declarationclass var shared: BADownloadManager { get }class · iOS 16.1+ · SDK 27.1
class BADownloadManagerstatic get shared(): BADownloadManagerSwift declarationclass var shared: BADownloadManager { get }cancel(download: BADownload): voidSwift declarationfunc cancel(_ download: BADownload) throwsfetchCurrentDownloads(): Array<BADownload>Swift declarationfunc fetchCurrentDownloads() throws -> [BADownload]fetchCurrentDownloadsCompletionHandler(completionHandler: ((arg0: Array<BADownload>, arg1: (NativeError) | null) => void)): voidSwift declarationvar currentDownloads: [BADownload] { get async throws }withExclusiveControl(performHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc withExclusiveControl(_ performHandler: @escaping (Bool, (any Error)?) -> Void)withExclusiveControlBeforeDatePerform(date: globalThis.Date, performHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): voidSwift declarationfunc withExclusiveControl(beforeDate date: Date, perform performHandler: @escaping (Bool, (any Error)?) -> Void)scheduleDownload(download: BADownload): voidSwift declarationfunc scheduleDownload(_ download: BADownload) throwsstartForegroundDownload(download: BADownload): voidSwift declarationfunc startForegroundDownload(_ download: BADownload) throwsget delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any BADownloadManagerDelegate)? { get set }set delegate(value: (Implements<BADownloadManagerDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any BADownloadManagerDelegate)? { get set }3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
BADownloadManager.withExclusiveControl(_:)
synchronous callback requires a nonescaping JS-thread call
BADownloadManager.withExclusiveControl(before:_:)
synchronous callback requires a nonescaping JS-thread call
BADownloadManager.init()
inherited init: clang: 'init' is unavailable