One Logo Pool Ball
BackgroundTasks · IOS API REFERENCE

BGTask

class · iOS 13.0+ · SDK 27.1

class BGTask

Members (4)

method · iOS 13.0+

setTaskCompleted

TypeScript
setTaskCompleted(success: boolean): void
Swift declaration
func setTaskCompleted(success: Bool)
get · iOS 13.0+

expirationHandler

TypeScript
get expirationHandler(): ((() => Promise<void>)) | null
Swift declaration
var expirationHandler: (() -> Void)? { get set }
set · iOS 13.0+

expirationHandler

TypeScript
set expirationHandler(value: ((() => void)) | null)
Swift declaration
var expirationHandler: (() -> Void)? { get set }
get · iOS 13.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }

Skipped declarations

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

BGTask.init()

inherited init: clang: 'init' is unavailable

All BackgroundTasks types →