ConnectionOptions
public struct ConnectionOptions
Allow configuring whether iOS can display a system alert when certain conditions are met while your app is suspended, usually an alert dialog outside of your app in the Home screen for example.
-
Default connection options.
Declaration
Swift
public static let defaultOptions = ConnectionOptions(notifyOnConnection: true, notifyOnDisconnection: true)
-
Creates a connection options that can specify whether iOS can display a system alert when certain conditions are met while your app is suspended, usually an alert dialog outside of your app in the Home screen for example.
Declaration
Swift
public init(notifyOnConnection: Bool, notifyOnDisconnection: Bool)
Parameters
notifyOnConnection
Determines whether iOS should show a system alert when your suspended app is connected to a peripheral.
notifyOnDisconnection
Determines whether iOS should show a system alert when your suspended app is disconnected from a peripheral.