Documentation Archive Developer
Search

HomeKit Changes for Swift

HomeKit

Modified HMAccessory
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified HMAction
Protocols
FromAnyObject
To--

Modified HMActionSet
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

DeclarationProtocols
From
enum HMErrorCode : Int {
    case AlreadyExists
    case NotFound
    case InvalidParameter
    case AccessoryNotReachable
    case ReadOnlyCharacteristic
    case WriteOnlyCharacteristic
    case NotificationNotSupported
    case OperationTimedOut
    case AccessoryPoweredOff
    case AccessDenied
    case ObjectAssociatedToAnotherHome
    case ObjectNotAssociatedToAnyHome
    case ObjectAlreadyAssociatedToHome
    case AccessoryIsBusy
    case OperationInProgress
    case AccessoryOutOfResources
    case InsufficientPrivileges
    case AccessoryPairingFailed
    case InvalidDataFormatSpecified
    case NilParameter
    case UnconfiguredParameter
    case InvalidClass
    case OperationCancelled
    case RoomForHomeCannotBeInZone
    case NoActionsInActionSet
    case NoRegisteredActionSets
    case MissingParameter
    case FireDateInPast
    case RoomForHomeCannotBeUpdated
    case ActionInAnotherActionSet
    case ObjectWithSimilarNameExistsInHome
    case HomeWithSimilarNameExists
    case RenameWithSimilarName
    case CannotRemoveNonBridgeAccessory
    case NameContainsProhibitedCharacters
    case NameDoesNotStartWithValidCharacters
    case UserIDNotEmailAddress
    case UserDeclinedAddingUser
    case UserDeclinedRemovingUser
    case UserDeclinedInvite
    case UserManagementFailed
    case RecurrenceTooSmall
    case InvalidValueType
    case ValueLowerThanMinimum
    case ValueHigherThanMaximum
    case StringLongerThanMaximum
    case HomeAccessNotAuthorized
    case OperationNotSupported
    case MaximumObjectLimitReached
    case AccessorySentInvalidResponse
    case StringShorterThanMinimum
    case GenericError
    case SecurityFailure
    case CommunicationFailure
    case MessageAuthenticationFailed
    case InvalidMessageSize
    case AccessoryDiscoveryFailed
    case ClientRequestError
    case AccessoryResponseError
    case NameDoesNotEndWithValidCharacters
    case AccessoryIsBlocked
    case InvalidAssociatedServiceType
    case ActionSetExecutionFailed
    case ActionSetExecutionPartialSuccess
    case ActionSetExecutionInProgress
    case AccessoryOutOfCompliance
    case DataResetFailure
    case NotificationAlreadyEnabled
    case RecurrenceMustBeOnSpecifiedBoundaries
    case DateMustBeOnSpecifiedBoundaries
    case CannotActivateTriggerTooFarInFuture
    case RecurrenceTooLarge
    case ReadWritePartialSuccess
    case ReadWriteFailure
    case NotSignedIntoiCloud
    case KeychainSyncNotEnabled
    case CloudDataSyncInProgress
    case NetworkUnavailable
    case AddAccessoryFailed
    case MissingEntitlement
    case CannotUnblockNonBridgeAccessory
    case DeviceLocked
    case CannotRemoveBuiltinActionSet
    case LocationForHomeDisabled
    case NotAuthorizedForLocationServices
}
extension HMErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
extension HMErrorCode : Hashable, Equatable, __BridgedNSError, ErrorType, RawRepresentable, _ObjectiveCBridgeableErrorType, _BridgedNSError {
}
Equatable, ErrorType, Hashable, RawRepresentable
To
enum HMErrorCode : Int {
    case AlreadyExists
    case NotFound
    case InvalidParameter
    case AccessoryNotReachable
    case ReadOnlyCharacteristic
    case WriteOnlyCharacteristic
    case NotificationNotSupported
    case OperationTimedOut
    case AccessoryPoweredOff
    case AccessDenied
    case ObjectAssociatedToAnotherHome
    case ObjectNotAssociatedToAnyHome
    case ObjectAlreadyAssociatedToHome
    case AccessoryIsBusy
    case OperationInProgress
    case AccessoryOutOfResources
    case InsufficientPrivileges
    case AccessoryPairingFailed
    case InvalidDataFormatSpecified
    case NilParameter
    case UnconfiguredParameter
    case InvalidClass
    case OperationCancelled
    case RoomForHomeCannotBeInZone
    case NoActionsInActionSet
    case NoRegisteredActionSets
    case MissingParameter
    case FireDateInPast
    case RoomForHomeCannotBeUpdated
    case ActionInAnotherActionSet
    case ObjectWithSimilarNameExistsInHome
    case HomeWithSimilarNameExists
    case RenameWithSimilarName
    case CannotRemoveNonBridgeAccessory
    case NameContainsProhibitedCharacters
    case NameDoesNotStartWithValidCharacters
    case UserIDNotEmailAddress
    case UserDeclinedAddingUser
    case UserDeclinedRemovingUser
    case UserDeclinedInvite
    case UserManagementFailed
    case RecurrenceTooSmall
    case InvalidValueType
    case ValueLowerThanMinimum
    case ValueHigherThanMaximum
    case StringLongerThanMaximum
    case HomeAccessNotAuthorized
    case OperationNotSupported
    case MaximumObjectLimitReached
    case AccessorySentInvalidResponse
    case StringShorterThanMinimum
    case GenericError
    case SecurityFailure
    case CommunicationFailure
    case MessageAuthenticationFailed
    case InvalidMessageSize
    case AccessoryDiscoveryFailed
    case ClientRequestError
    case AccessoryResponseError
    case NameDoesNotEndWithValidCharacters
    case AccessoryIsBlocked
    case InvalidAssociatedServiceType
    case ActionSetExecutionFailed
    case ActionSetExecutionPartialSuccess
    case ActionSetExecutionInProgress
    case AccessoryOutOfCompliance
    case DataResetFailure
    case NotificationAlreadyEnabled
    case RecurrenceMustBeOnSpecifiedBoundaries
    case DateMustBeOnSpecifiedBoundaries
    case CannotActivateTriggerTooFarInFuture
    case RecurrenceTooLarge
    case ReadWritePartialSuccess
    case ReadWriteFailure
    case NotSignedIntoiCloud
    case KeychainSyncNotEnabled
    case CloudDataSyncInProgress
    case NetworkUnavailable
    case AddAccessoryFailed
    case MissingEntitlement
    case CannotUnblockNonBridgeAccessory
    case DeviceLocked
    case CannotRemoveBuiltinActionSet
    case LocationForHomeDisabled
    case NotAuthorizedForLocationServices
}
extension HMErrorCode : _BridgedNSError {
}
extension HMErrorCode : _BridgedNSError {
}
--

Modified HMEvent
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified HMHome
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified HMHomeManager
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified HMRoom
Protocols
FromAnyObject
To--

Modified HMService
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Modified HMTrigger
Protocols
FromAnyObject
To--

Modified HMUser
Protocols
FromAnyObject
To--

Modified HMZone
Protocols
FromAnyObject
To--