WarningOptions
public struct WarningOptions
A connection’s configurations for system alerts.
-
Sensible default warning options: all off in favour of not aggressively notifying the user of changes when the app is backgrounded.
Declaration
Swift
public static let `default`: WarningOptions
-
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, notifyOnNotification: 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.