Documentation Archive Developer
Search

IOBluetoothUI Changes for Swift

IOBluetoothUI

Declaration
From
class IOBluetoothDeviceSelectorController : NSWindowController {
    class func deviceSelector() -> IOBluetoothDeviceSelectorController!
    class func withDeviceSelectorControllerRef(_ deviceSelectorControllerRef: IOBluetoothDeviceSelectorController!) -> IOBluetoothDeviceSelectorController!
    func getDeviceSelectorControllerRef() -> Unmanaged<IOBluetoothDeviceSelectorController>!
    func runModal() -> Int32
    func beginSheetModalForWindow(_ sheetWindow: NSWindow!, modalDelegate modalDelegate: AnyObject!, didEndSelector didEndSelector: Selector, contextInfo contextInfo: UnsafeMutablePointer<Void>) -> IOReturn
    func getResults() -> [AnyObject]!
    func setOptions(_ options: IOBluetoothServiceBrowserControllerOptions)
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setHeader(_ headerText: String!)
    func getHeader() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
    func setCancel(_ prompt: String!)
    func getCancel() -> String!
}
To
class IOBluetoothDeviceSelectorController : NSWindowController {
    class func deviceSelector() -> IOBluetoothDeviceSelectorController!
    class func withDeviceSelectorControllerRef(_ deviceSelectorControllerRef: IOBluetoothDeviceSelectorControllerRef!) -> IOBluetoothDeviceSelectorController!
    func getDeviceSelectorControllerRef() -> Unmanaged<IOBluetoothDeviceSelectorControllerRef>!
    func runModal() -> Int32
    func beginSheetModalForWindow(_ sheetWindow: NSWindow!, modalDelegate modalDelegate: AnyObject!, didEndSelector didEndSelector: Selector, contextInfo contextInfo: UnsafeMutablePointer<Void>) -> IOReturn
    func getResults() -> [AnyObject]!
    func setOptions(_ options: IOBluetoothServiceBrowserControllerOptions)
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setHeader(_ headerText: String!)
    func getHeader() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
    func setCancel(_ prompt: String!)
    func getCancel() -> String!
}

Declaration
From
typealias IOBluetoothDeviceSelectorControllerRef = IOBluetoothDeviceSelectorController
To
class IOBluetoothDeviceSelectorControllerRef {
}

Declaration
From
class IOBluetoothPairingController : NSWindowController {
     init!()
    class func pairingController() -> IOBluetoothPairingController!
    class func withPairingControllerRef(_ pairingControllerRef: IOBluetoothPairingController!) -> IOBluetoothPairingController!
    func getPairingControllerRef() -> Unmanaged<IOBluetoothPairingController>!
    func runModal() -> Int32
    func getResults() -> [AnyObject]!
    func setOptions(_ options: IOBluetoothServiceBrowserControllerOptions)
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
}
To
class IOBluetoothPairingController : NSWindowController {
     init!()
    class func pairingController() -> IOBluetoothPairingController!
    class func withPairingControllerRef(_ pairingControllerRef: IOBluetoothPairingControllerRef!) -> IOBluetoothPairingController!
    func getPairingControllerRef() -> Unmanaged<IOBluetoothPairingControllerRef>!
    func runModal() -> Int32
    func getResults() -> [AnyObject]!
    func setOptions(_ options: IOBluetoothServiceBrowserControllerOptions)
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
}

Declaration
From
typealias IOBluetoothPairingControllerRef = IOBluetoothPairingController
To
class IOBluetoothPairingControllerRef {
}

Declaration
From
class IOBluetoothServiceBrowserController : NSWindowController {
     init!(_ inOptions: IOBluetoothServiceBrowserControllerOptions)
    class func serviceBrowserController(_ inOptions: IOBluetoothServiceBrowserControllerOptions) -> IOBluetoothServiceBrowserController!
    class func browseDevices(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>, options inOptions: IOBluetoothServiceBrowserControllerOptions) -> IOReturn
    class func browseDevicesAsSheetForWindow(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>, options inOptions: IOBluetoothServiceBrowserControllerOptions, window inWindow: NSWindow!) -> IOReturn
    class func withServiceBrowserControllerRef(_ serviceBrowserControllerRef: IOBluetoothServiceBrowserController!) -> IOBluetoothServiceBrowserController!
    func getServiceBrowserControllerRef() -> Unmanaged<IOBluetoothServiceBrowserController>!
    func discover(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func discoverAsSheetForWindow(_ sheetWindow: NSWindow!, withRecord outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func discoverWithDeviceAttributes(_ deviceAttributes: UnsafeMutablePointer<IOBluetoothDeviceSearchAttributes>, serviceList serviceArray: [AnyObject]!, serviceRecord outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func setOptions(_ inOptions: IOBluetoothServiceBrowserControllerOptions)
    func runModal() -> Int32
    func beginSheetModalForWindow(_ sheetWindow: NSWindow!, modalDelegate modalDelegate: AnyObject!, didEndSelector didEndSelector: Selector, contextInfo contextInfo: UnsafeMutablePointer<Void>) -> IOReturn
    func getResults() -> [AnyObject]!
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
}
To
class IOBluetoothServiceBrowserController : NSWindowController {
     init!(_ inOptions: IOBluetoothServiceBrowserControllerOptions)
    class func serviceBrowserController(_ inOptions: IOBluetoothServiceBrowserControllerOptions) -> IOBluetoothServiceBrowserController!
    class func browseDevices(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>, options inOptions: IOBluetoothServiceBrowserControllerOptions) -> IOReturn
    class func browseDevicesAsSheetForWindow(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>, options inOptions: IOBluetoothServiceBrowserControllerOptions, window inWindow: NSWindow!) -> IOReturn
    class func withServiceBrowserControllerRef(_ serviceBrowserControllerRef: IOBluetoothServiceBrowserControllerRef!) -> IOBluetoothServiceBrowserController!
    func getServiceBrowserControllerRef() -> Unmanaged<IOBluetoothServiceBrowserControllerRef>!
    func discover(_ outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func discoverAsSheetForWindow(_ sheetWindow: NSWindow!, withRecord outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func discoverWithDeviceAttributes(_ deviceAttributes: UnsafeMutablePointer<IOBluetoothDeviceSearchAttributes>, serviceList serviceArray: [AnyObject]!, serviceRecord outRecord: AutoreleasingUnsafeMutablePointer<IOBluetoothSDPServiceRecord?>) -> IOReturn
    func setOptions(_ inOptions: IOBluetoothServiceBrowserControllerOptions)
    func runModal() -> Int32
    func beginSheetModalForWindow(_ sheetWindow: NSWindow!, modalDelegate modalDelegate: AnyObject!, didEndSelector didEndSelector: Selector, contextInfo contextInfo: UnsafeMutablePointer<Void>) -> IOReturn
    func getResults() -> [AnyObject]!
    func getOptions() -> IOBluetoothServiceBrowserControllerOptions
    func setSearchAttributes(_ searchAttributes: UnsafePointer<IOBluetoothDeviceSearchAttributes>)
    func getSearchAttributes() -> UnsafePointer<IOBluetoothDeviceSearchAttributes>
    func addAllowedUUID(_ allowedUUID: IOBluetoothSDPUUID!)
    func addAllowedUUIDArray(_ allowedUUIDArray: [AnyObject]!)
    func clearAllowedUUIDs()
    func setTitle(_ windowTitle: String!)
    func getTitle() -> String!
    func setDescriptionText(_ descriptionText: String!)
    func getDescriptionText() -> String!
    func setPrompt(_ prompt: String!)
    func getPrompt() -> String!
}

Declaration
From
func getServiceBrowserControllerRef() -> Unmanaged<IOBluetoothServiceBrowserController>!
To
func getServiceBrowserControllerRef() -> Unmanaged<IOBluetoothServiceBrowserControllerRef>!

Declaration
From
class func withServiceBrowserControllerRef(_ serviceBrowserControllerRef: IOBluetoothServiceBrowserController!) -> IOBluetoothServiceBrowserController!
To
class func withServiceBrowserControllerRef(_ serviceBrowserControllerRef: IOBluetoothServiceBrowserControllerRef!) -> IOBluetoothServiceBrowserController!

Declaration
From
typealias IOBluetoothServiceBrowserControllerRef = IOBluetoothServiceBrowserController
To
class IOBluetoothServiceBrowserControllerRef {
}

Declaration
From
func IOBluetoothGetDeviceSelectorController() -> Unmanaged<IOBluetoothDeviceSelectorController>!
To
func IOBluetoothGetDeviceSelectorController() -> Unmanaged<IOBluetoothDeviceSelectorControllerRef>!

Declaration
From
func IOBluetoothGetPairingController() -> Unmanaged<IOBluetoothPairingController>!
To
func IOBluetoothGetPairingController() -> Unmanaged<IOBluetoothPairingControllerRef>!