Interface MTRDeviceControllerDelegate


  • public interface MTRDeviceControllerDelegate
    The protocol definition for the MTRDeviceControllerDelegate. All delegate methods will be called on the supplied Delegate Queue. API-Since: 16.4
    • Method Detail

      • controllerCommissioningComplete

        @Deprecated
        default void controllerCommissioningComplete​(@NotNull
                                                     @NotNull MTRDeviceController controller,
                                                     @Nullable
                                                     @Nullable NSError error)
        Deprecated.
        Notify the delegate when commissioning is completed. API-Since: 16.4 Deprecated-Since: 17.0 Deprecated-Message: Please use controller:commissioningComplete:nodeID:
      • controllerCommissioningCompleteNodeID

        default void controllerCommissioningCompleteNodeID​(@NotNull
                                                           @NotNull MTRDeviceController controller,
                                                           @Nullable
                                                           @Nullable NSError error,
                                                           @Nullable
                                                           @Nullable NSNumber nodeID)
        Notify the delegate when commissioning is completed. Exactly one of error and nodeID will be nil. If nodeID is not nil, then it represents the node id the node was assigned, as encoded in its operational certificate. API-Since: 17.0
      • controllerCommissioningSessionEstablishmentDone

        default void controllerCommissioningSessionEstablishmentDone​(@NotNull
                                                                     @NotNull MTRDeviceController controller,
                                                                     @Nullable
                                                                     @Nullable NSError error)
        Notify the delegate when a commissioning session is established or the establishment has errored out.
      • controllerReadCommissioningInfo

        default void controllerReadCommissioningInfo​(@NotNull
                                                     @NotNull MTRDeviceController controller,
                                                     @NotNull
                                                     @NotNull MTRProductIdentity info)
        Notify the delegate when commissioning infomation has been read from the Basic Information cluster of the commissionee. At the point when this notification happens, device attestation has not been performed yet, so the information delivered by this notification should not be trusted. API-Since: 17.0
      • controllerStatusUpdate

        default void controllerStatusUpdate​(@NotNull
                                            @NotNull MTRDeviceController controller,
                                            long status)
        Notify the delegate when commissioning status gets updated.