One Logo Pool Ball
BackgroundAssets · IOS API REFERENCE

BADownloadManager

class · iOS 16.1+ · SDK 27.1

class BADownloadManager

Members (10)

get · iOS 16.1+

shared

TypeScript
static get shared(): BADownloadManager
Swift declaration
class var shared: BADownloadManager { get }
method · iOS 16.1+

cancel

TypeScript
cancel(download: BADownload): void
Swift declaration
func cancel(_ download: BADownload) throws
method · iOS 16.4+

fetchCurrentDownloads

TypeScript
fetchCurrentDownloads(): Array<BADownload>
Swift declaration
func fetchCurrentDownloads() throws -> [BADownload]
method · iOS 16.1+

fetchCurrentDownloads

TypeScript
fetchCurrentDownloadsCompletionHandler(completionHandler: ((arg0: Array<BADownload>, arg1: (NativeError) | null) => void)): void
Swift declaration
var currentDownloads: [BADownload] { get async throws }
method · iOS 16.1+ · Deprecated in iOS 27.0

withExclusiveControl

TypeScript
withExclusiveControl(performHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func withExclusiveControl(_ performHandler: @escaping (Bool, (any Error)?) -> Void)
method · iOS 16.1+ · Deprecated in iOS 27.0

withExclusiveControl

TypeScript
withExclusiveControlBeforeDatePerform(date: globalThis.Date, performHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func withExclusiveControl(beforeDate date: Date, perform performHandler: @escaping (Bool, (any Error)?) -> Void)
method · iOS 16.1+

scheduleDownload

TypeScript
scheduleDownload(download: BADownload): void
Swift declaration
func scheduleDownload(_ download: BADownload) throws
method · iOS 16.1+

startForegroundDownload

TypeScript
startForegroundDownload(download: BADownload): void
Swift declaration
func startForegroundDownload(_ download: BADownload) throws
get · iOS 16.1+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any BADownloadManagerDelegate)? { get set }
set · iOS 16.1+

delegate

TypeScript
set delegate(value: (Implements<BADownloadManagerDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any BADownloadManagerDelegate)? { get set }

Skipped declarations

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

All BackgroundAssets types →