Class

IOBluetoothDeviceSelectorController

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

Overview

Implementation of a window controller to return a NSArray of selected bluetooth devices. This class will handle connecting to the Bluetooth Daemon for the purposes of searches, and displaying the results. This controller will return a NSArray of IOBluetoothDevice objects to the user.

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 getCancel()

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

func getDescriptionText()

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

func getHeader()

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

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 the result of the user's selection.

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 device selector panel in a modal session to allow the user to select a Bluetooth device.

func setCancel(String!)

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

func setDescriptionText(String!)

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

func setHeader(String!)

Sets the header 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.