Interface MTRDeviceAttestationDelegate


  • public interface MTRDeviceAttestationDelegate
    The protocol definition for the MTRDeviceAttestationDelegate.
    • Method Detail

      • deviceAttestationCompletedForDeviceAttestationDeviceInfoError

        @Deprecated
        default void deviceAttestationCompletedForDeviceAttestationDeviceInfoError​(@NotNull
                                                                                   @NotNull MTRDeviceController controller,
                                                                                   @NotNull
                                                                                   @NotNull org.moe.natj.general.ptr.VoidPtr device,
                                                                                   @NotNull
                                                                                   @NotNull MTRDeviceAttestationDeviceInfo attestationDeviceInfo,
                                                                                   @Nullable
                                                                                   @Nullable NSError error)
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please implement deviceAttestationCompletedForController:opaqueDeviceHandle:attestationDeviceInfo:error:
      • deviceAttestationFailedForDeviceError

        @Deprecated
        default void deviceAttestationFailedForDeviceError​(@NotNull
                                                           @NotNull MTRDeviceController controller,
                                                           @NotNull
                                                           @NotNull org.moe.natj.general.ptr.VoidPtr device,
                                                           @NotNull
                                                           @NotNull NSError error)
        Deprecated.
        API-Since: 16.1 Deprecated-Since: 16.4 Deprecated-Message: Please implement deviceAttestationFailedForController:opaqueDeviceHandle:error:
      • deviceAttestationCompletedForControllerOpaqueDeviceHandleAttestationDeviceInfoError

        default void deviceAttestationCompletedForControllerOpaqueDeviceHandleAttestationDeviceInfoError​(@NotNull
                                                                                                         @NotNull MTRDeviceController controller,
                                                                                                         @NotNull
                                                                                                         @NotNull org.moe.natj.general.ptr.VoidPtr opaqueDeviceHandle,
                                                                                                         @NotNull
                                                                                                         @NotNull MTRDeviceAttestationDeviceInfo attestationDeviceInfo,
                                                                                                         @Nullable
                                                                                                         @Nullable NSError error)
        Notify the delegate when device attestation completed with device info for additional verification. If this callback is implemented, continueCommissioningDevice on MTRDeviceController is expected to be called if commisioning should continue. This allows the delegate to stop commissioning after examining the device info (DAC, PAI, CD).
        Parameters:
        controller - Controller corresponding to the commissioning process
        opaqueDeviceHandle - Handle of device being commissioned
        attestationDeviceInfo - Attestation information for the device
        error - NSError representing the error code on attestation failure. Nil if success. API-Since: 16.4
      • deviceAttestationFailedForControllerOpaqueDeviceHandleError

        default void deviceAttestationFailedForControllerOpaqueDeviceHandleError​(@NotNull
                                                                                 @NotNull MTRDeviceController controller,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.general.ptr.VoidPtr opaqueDeviceHandle,
                                                                                 @NotNull
                                                                                 @NotNull NSError error)
        Notify the delegate when device attestation fails. If this callback is implemented, continueCommissioningDevice on MTRDeviceController is expected to be called if commisioning should continue.
        Parameters:
        controller - Controller corresponding to the commissioning process
        opaqueDeviceHandle - Handle of device being commissioned
        error - NSError representing the error code for the failure API-Since: 16.4