Files
swift-mirror/apinotes/HomeKit.apinotes
Doug Gregor 71882c6516 [API Notes] Use API notes rather than overlays to make error enums bridge.
The Clang attribute allows one to state that a particular enumeration
type describes an error, and associates it with a particular domain
constant. However, due to lack of API notes support, this attribute
wasn't actually getting used. Instead, we had a number of explicit
extensions to enum types to make them conform to the _BridgedNSError
protocol explicitly.

Now that we have API notes, use them to make these enums into error
enums with the appropriate domain, so that the Clang importer will
synthesize the _BridgedNSError conformances. Then, remove all of the
explicit conformances---and with them, the overlays for 12 frameworks.

There is a small fix to more eagerly consider these conformances as
"used" if an expression is formed with the error enum as a value
type. This better ensures that the conformances will be available at
runtime when needed.

This cleanup is needed to implement SE-0112 (NSError bridging),
although it is useful by itself.
2016-07-06 09:54:59 -07:00

68 lines
2.7 KiB
Plaintext

---
Name: HomeKit
Classes:
- Name: HMCameraAudioControl
Methods:
- Selector: 'readOn:'
SwiftName: 'readOn(_:)'
MethodKind: Instance
- Selector: 'writeOn:completionHandler:'
SwiftName: 'writeOn(_:completionHandler:)'
MethodKind: Instance
- Name: HMEventTrigger
Methods:
- Selector: 'predicateForEvaluatingTriggerOccurringBeforeSignificantEvent:applyingOffset:'
SwiftName: 'predicateForEvaluatingTrigger(occurringBefore:applyingOffset:)'
MethodKind: Class
- Selector: 'predicateForEvaluatingTriggerOccurringAfterSignificantEvent:applyingOffset:'
SwiftName: 'predicateForEvaluatingTrigger(occurringAfter:applyingOffset:)'
MethodKind: Class
- Selector: 'predicateForEvaluatingTriggerOccurringBeforeDateWithComponents:'
SwiftName: 'predicateForEvaluatingTrigger(occurringBefore:)'
MethodKind: Class
- Selector: 'predicateForEvaluatingTriggerOccurringOnDateWithComponents:'
SwiftName: 'predicateForEvaluatingTrigger(occurringOn:)'
MethodKind: Class
- Selector: 'predicateForEvaluatingTriggerOccurringAfterDateWithComponents:'
SwiftName: 'predicateForEvaluatingTrigger(occurringAfter:)'
MethodKind: Class
- Selector: 'predicateForEvaluatingTriggerWithCharacteristic:relatedBy:toValue:'
SwiftName: 'predicateForEvaluatingTrigger(_:relatedBy:toValue:)'
MethodKind: Class
- Name: HMHome
Methods:
- Selector: 'servicesWithTypes:'
SwiftName: 'servicesWithTypes(_:)'
MethodKind: Instance
- Selector: 'addRoomWithName:completionHandler:'
SwiftName: 'addRoom(name:completionHandler:NSError?):)'
MethodKind: Instance
- Selector: 'addZoneWithName:completionHandler:'
SwiftName: 'addZone(name:completionHandler:NSError?):)'
MethodKind: Instance
- Selector: 'addServiceGroupWithName:completionHandler:'
SwiftName: 'addServiceGroup(name:completionHandler:NSError?):)'
MethodKind: Instance
- Selector: 'addActionSetWithName:completionHandler:'
SwiftName: 'addActionSet(name:completionHandler:NSError?):)'
MethodKind: Instance
- Name: HMHomeManager
Methods:
- Selector: 'addHomeWithName:completionHandler:'
SwiftName: 'addHome(name:completionHandler:NSError?):)'
MethodKind: Instance
- Name: HMTimerTrigger
Methods:
- Selector: 'initWithName:fireDate:timeZone:recurrence:recurrenceCalendar:'
SwiftName: 'init(name:fireDate:timeZone:recurrence:recurrenceCalendar:)'
MethodKind: Instance
- Selector: 'updateFireDate:completionHandler:'
SwiftName: 'updateFireDate(_:completionHandler:)'
MethodKind: Instance
- Selector: 'initWithName:fireDate:timeZone:recurrences:'
SwiftName: 'init(name:fireDate:timeZone:recurrences:)'
MethodKind: Instance
Tags:
- Name: HMErrorCode
NSErrorDomain: HMErrorDomain