Contents

init(uuid:name:reason:localizedFailureDescription:)

Creates the structure that contains information about why a transfer failed.

Declaration

init(uuid: UUID, name: String, reason: HMHome.ProvisionalHomeTransferResult.FailedAccessory.Reason, localizedFailureDescription: String? = nil)

Parameters

  • uuid:

    A string that uniquely identifies the accessory.

  • name:

    The name of the accessory.

  • reason:

    A value that indicates why the transfer failed.

  • localizedFailureDescription:

    A localized string that explains why the transfer failed.

Return Value

An accessory that wasn’t transferred to the home hub.

See Also

Describing the failed accessory