Instance Method

initWithURL:ownershipToken:

Creates an accessory setup payload instance that includes an ownership token.

Declaration

- (instancetype)initWithURL:(NSURL *)setupPayloadURL ownershipToken:(HMAccessoryOwnershipToken *)ownershipToken;

Parameters

setupPayloadURL

The payload used to securely authenticate the accessory. This is the same payload you would receive by scanning the accessory’s QR code.

ownershipToken

A token that proves ownership of the accessory. You typically negotiate this token with the accessory outside of HomeKit.

Discussion

For details about the payload’s content, join the MFi Program.

See Also

Creating a Payload

- initWithURL:

Creates an accessory setup payload.

HMAccessoryOwnershipToken

Authentication data that your app provides when adding an accessory to a home.