Class

IOBluetoothServiceBrowserController

A NSWindowController subclass to display a window to search for and perform SDP queries on bluetooth devices within range.

Overview

This NSWindowController subclass will bring up a generic Bluetooth search and SDP browsing window allowing the user to find devices within range, perform SDP queries on a particular device, and select a SDP service to connect to. The client application can provide NSArrays of valid service UUIDs to allow, and an NSArray of valid device types to allow. The device type filter is not yet implemented.

Topics

Initializers

serviceBrowserController:

Allocator work Bluetooth Service Browser window controller.

Instance Methods

addAllowedUUID:

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

addAllowedUUIDArray:

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

beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:

Runs the service browser panel as a sheet on the target window.

clearAllowedUUIDs

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

getDescriptionText

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

getOptions

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

getPrompt

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

getResults

Returns the result of the user's selection.

getSearchAttributes

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

getServiceBrowserControllerRef

Returns an IOBluetoothServiceBrowserControllerRef representation of the target IOBluetoothServiceBrowserController object.

getTitle

Returns the title of the device selector panel.

runModal

Runs the service browser panel in a modal session to allow the user to select a service on a Bluetooth device.

setDescriptionText:

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

setOptions:

Modify the options for the window controller.

setPrompt:

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

setSearchAttributes:

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

setTitle:

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

discover:

Invoke an already created window controller to display, and run the modal dialog.

Deprecated
discoverAsSheetForWindow:withRecord:

Invoke an already created window controller to display, and run the modal dialog.

Deprecated
discoverWithDeviceAttributes:serviceList:serviceRecord:

Invoke an already created window controller to display, and run the modal dialog.

Deprecated

Type Methods

withServiceBrowserControllerRef:

Method call to convert an IOBluetoothServiceBrowserControllerRef into an IOBluetoothServiceBrowserController *.

Relationships

Inherits From