One Logo Pool Ball
ExposureNotification · IOS API REFERENCE

ENManager

class · iOS 12.5+ · Deprecated in iOS 27.0 · SDK 27.1

class ENManager

Members (22)

get · iOS 12.5+ · Deprecated in iOS 27.0

authorizationStatus

TypeScript
static get authorizationStatus(): ENAuthorizationStatus
Swift declaration
class var authorizationStatus: ENAuthorizationStatus { get }
method · iOS 12.5+ · Deprecated in iOS 27.0

activate

TypeScript
activate(completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func activate() async throws
method · iOS 12.5+ · Deprecated in iOS 27.0

detectExposures

TypeScript
detectExposuresConfigurationCompletionHandler(configuration: ENExposureConfiguration, completionHandler: ((arg0: (ENExposureDetectionSummary) | null, arg1: (NativeError) | null) => void)): _Foundation_Progress
Swift declaration
func detectExposures(configuration: ENExposureConfiguration, completionHandler: @escaping ENDetectExposuresHandler) -> Progress
method · iOS 12.5+ · Deprecated in iOS 27.0

detectExposures

TypeScript
detectExposuresConfigurationDiagnosisKeyURLsCompletionHandler(configuration: ENExposureConfiguration, diagnosisKeyURLs: Array<string>, completionHandler: ((arg0: (ENExposureDetectionSummary) | null, arg1: (NativeError) | null) => void)): _Foundation_Progress
Swift declaration
func detectExposures(configuration: ENExposureConfiguration, diagnosisKeyURLs: [URL], completionHandler: @escaping ENDetectExposuresHandler) -> Progress
method · iOS 12.5+ · Deprecated in iOS 27.0

getDiagnosisKeys

TypeScript
getDiagnosisKeys(completionHandler: ((arg0: (Array<ENTemporaryExposureKey>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func diagnosisKeys() async throws -> [ENTemporaryExposureKey]
method · iOS 13.5+ · Deprecated in iOS 13.6

getExposureInfo

TypeScript
getExposureInfo(summary: ENExposureDetectionSummary, userExplanation: string, completionHandler: ((arg0: (Array<ENExposureInfo>) | null, arg1: (NativeError) | null) => void)): _Foundation_Progress
Swift declaration
func getExposureInfo(summary: ENExposureDetectionSummary, userExplanation: String, completionHandler: @escaping ENGetExposureInfoHandler) -> Progress
method · iOS 12.5+ · Deprecated in iOS 27.0

getExposureWindows

TypeScript
getExposureWindows(summary: ENExposureDetectionSummary, completionHandler: ((arg0: (Array<ENExposureWindow>) | null, arg1: (NativeError) | null) => void)): _Foundation_Progress
Swift declaration
func getExposureWindows(summary: ENExposureDetectionSummary, completionHandler: @escaping ENGetExposureWindowsHandler) -> Progress
method · iOS 12.5+ · Deprecated in iOS 27.0

getTestDiagnosisKeys

TypeScript
getTestDiagnosisKeys(completionHandler: ((arg0: (Array<ENTemporaryExposureKey>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func testDiagnosisKeys() async throws -> [ENTemporaryExposureKey]
method · iOS 12.5+ · Deprecated in iOS 27.0

getUserTraveled

TypeScript
getUserTraveled(completionHandler: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func userTraveled() async throws -> Bool
init

init

TypeScript
static init(): ENManager
Swift declaration
init()
method · iOS 12.5+ · Deprecated in iOS 27.0

invalidate

TypeScript
invalidate(): void
Swift declaration
func invalidate()
method · iOS 14.4+ · Deprecated in iOS 27.0

preAuthorizeDiagnosisKeys

TypeScript
preAuthorizeDiagnosisKeys(completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func preAuthorizeDiagnosisKeys() async throws
method · iOS 14.4+ · Deprecated in iOS 27.0

requestPreAuthorizedDiagnosisKeys

TypeScript
requestPreAuthorizedDiagnosisKeys(completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func requestPreAuthorizedDiagnosisKeys() async throws
method · iOS 12.5+ · Deprecated in iOS 27.0

setExposureNotificationEnabled

TypeScript
setExposureNotificationEnabled(enabled: boolean, completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func setExposureNotificationEnabled(_ enabled: Bool) async throws
get · iOS 14.4+ · Deprecated in iOS 27.0

diagnosisKeysAvailableHandler

TypeScript
get diagnosisKeysAvailableHandler(): (((arg0: Array<ENTemporaryExposureKey>) => Promise<void>)) | null
Swift declaration
var diagnosisKeysAvailableHandler: ENDiagnosisKeysAvailableHandler? { get set }
set · iOS 14.4+ · Deprecated in iOS 27.0

diagnosisKeysAvailableHandler

TypeScript
set diagnosisKeysAvailableHandler(value: (((arg0: Array<ENTemporaryExposureKey>) => void)) | null)
Swift declaration
var diagnosisKeysAvailableHandler: ENDiagnosisKeysAvailableHandler? { get set }
get · iOS 12.5+ · Deprecated in iOS 27.0

dispatchQueue

TypeScript
get dispatchQueue(): _Dispatch_DispatchQueue
Swift declaration
var dispatchQueue: dispatch_queue_t { get set }
set · iOS 12.5+ · Deprecated in iOS 27.0

dispatchQueue

TypeScript
set dispatchQueue(value: _Dispatch_DispatchQueue)
Swift declaration
var dispatchQueue: dispatch_queue_t { get set }
get · iOS 12.5+ · Deprecated in iOS 27.0

exposureNotificationEnabled

TypeScript
get exposureNotificationEnabled(): boolean
Swift declaration
var exposureNotificationEnabled: Bool { get }
get · iOS 12.5+ · Deprecated in iOS 27.0

exposureNotificationStatus

TypeScript
get exposureNotificationStatus(): ENStatus
Swift declaration
var exposureNotificationStatus: ENStatus { get }
get · iOS 12.5+ · Deprecated in iOS 27.0

invalidationHandler

TypeScript
get invalidationHandler(): ((() => Promise<void>)) | null
Swift declaration
var invalidationHandler: (() -> Void)? { get set }
set · iOS 12.5+ · Deprecated in iOS 27.0

invalidationHandler

TypeScript
set invalidationHandler(value: ((() => void)) | null)
Swift declaration
var invalidationHandler: (() -> Void)? { get set }

Skipped declarations

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

ENManager.activityHandler

The iOS SDK compiler rejected this binding: cannot convert value of type 'ENActivityFlags' to expected argument type 'UInt32'

ENManager.activityHandler

The iOS SDK compiler rejected this binding: cannot assign value of type '((ENActivityFlags) -> Void)?' to type 'ENActivityHandler?' (aka 'Optional<(UInt32) -> ()>')

All ExposureNotification types →