Interface MTROTAProviderDelegate


  • public interface MTROTAProviderDelegate
    The protocol definition for the MTROTAProviderDelegate All delegate methods will be called on the supplied Delegate Queue. While the selectors on this protocol are marked @optional, in practice an implementation must provide an implementation for one of each pair of selectors (e.g. one of the two handleQueryImageForNodeID selectors must be implemented). The selector ending in "completion:" will be used if present; otherwise the one ending in "completionHandler:" will be used.
    • Method Detail

      • handleBDXTransferSessionEndForNodeIDControllerError

        default void handleBDXTransferSessionEndForNodeIDControllerError​(@NotNull
                                                                         @NotNull NSNumber nodeID,
                                                                         @NotNull
                                                                         @NotNull MTRDeviceController controller,
                                                                         @Nullable
                                                                         @Nullable NSError error)
        Notify the delegate when a BDX Session ends for some node. The controller identifies the fabric the node is on, and the nodeID identifies the node within that fabric.
      • handleQueryImageForNodeIDControllerParamsCompletion

        default void handleQueryImageForNodeIDControllerParamsCompletion​(@NotNull
                                                                         @NotNull NSNumber nodeID,
                                                                         @NotNull
                                                                         @NotNull MTRDeviceController controller,
                                                                         @NotNull
                                                                         @NotNull MTROTASoftwareUpdateProviderClusterQueryImageParams params,
                                                                         @NotNull
                                                                         @NotNull MTROTAProviderDelegate.Block_handleQueryImageForNodeIDControllerParamsCompletion completion)
        Notify the delegate when the query image command is received from some node. The controller identifies the fabric the node is on, and the nodeID identifies the node within that fabric. If completion is passed a non-nil error, that will be converted into an error response to the client. Otherwise it must have a non-nil data, which will be returned to the client. When providing an OTA image, the imageURI in the MTROTASoftwareUpdateProviderClusterQueryImageResponseParams must be set to the file designator of the image. The completion will create the right BDX URI from that file designator, as needed. The file designator returned here via imageURI will be the same as the file designator passed to handleBDXTransferSessionBeginForNodeID:controller:fileDesignator:offset:completion:. API-Since: 16.4