DeviceSearchTaskUserInterface
@available(*, deprecated, message: "DeviceSearchTask has been deprecated. It has been replaced by ConnectionTask.")
public protocol DeviceSearchTaskUserInterface
Objects conforming to this protocol provide a user interface to show devices as they are discovered and allow the user to select a device.
A DeviceSearchTask
is initialized with an object conforming to the DeviceSearchTaskUserInterface
protocol and calls these functions to show, hide, and update the user interface. The user interface calls back to the device search task via the DeviceSearchTaskUserInterfaceDelegate
protocol.
-
The delegate gets called by the user interface to notify when devices are selected or when the search has been cancelled.
Declaration
Swift
var delegate: DeviceSearchTaskUserInterfaceDelegate? { get set }
-
Show the user interface.
Declaration
Swift
func show()
-
Dismiss the user interface.
Declaration
Swift
func dismiss()
-
Add the specified device with the specified signal strength to the user interface.
Declaration
Swift
func add(device: DiscoveredDevice, signalStrength: SignalStrength)
-
Update the specified device with the specified signal strength to the user interface.
Declaration
Swift
func update(device: DiscoveredDevice, signalStrength: SignalStrength)
-
Remove the specified device from the user interface.
Declaration
Swift
func remove(device: DiscoveredDevice)