Class

IOBluetoothPairingController

A NSWindowController subclass to display a window to initiate pairing to other bluetooth devices.

Overview

Implementation of a window controller to handle pairing with a bluetooth device. This class will handle connecting to the Bluetooth Daemon for the purposes of searches, and displaying the results. When necessary this class will display a sheet asking the user for a PIN code. This window will not return anything to the caller if it is canceled or if pairing occurs.

Topics

Instance Methods

func addAllowedUUID(IOBluetoothSDPUUID!)

Adds a UUID to the list of UUIDs that are used to validate the user's selection.

func addAllowedUUIDArray([Any]!)

Adds an array of UUIDs to the list of UUIDs that are used to validate the user's selection.

func clearAllowedUUIDs()

Resets the controller back to the default state where it will accept any device the user selects.

func getDescriptionText()

Returns the description text that appears in the device selector panel (i.e. what was set in -setDescriptionText:).

func getOptions()

Returns the option bits that control the panel's behavior.

func getPrompt()

Returns the title of the default/select button in the device selector panel (i.e. what was set in -setPrompt:).

func getResults()

Returns an NSArray of the devices that were paired.

func getSearchAttributes()

Returns the search attributes that control the panel's search/inquiry behavior.

func getTitle()

Returns the title of the device selector panel (i.e. what was set in -setTitle:).

func runModal()

Runs the pairing panel in a modal session to allow the user to select a Bluetooth device.

func setDescriptionText(String!)

Sets the description text that appears in the device selector panel.

func setOptions(IOBluetoothServiceBrowserControllerOptions)

Sets the option bits that control the panel's behavior.

func setPrompt(String!)

Sets the title of the default/select button in the device selector panel.

func setSearchAttributes(UnsafePointer<IOBluetoothDeviceSearchAttributes>!)

Sets the search attributes that control the panel's search/inquiry behavior.

func setTitle(String!)

Sets the title of the panel when not run as a sheet.