BMLTCommunicatorDataSourceProtocol

protocol BMLTCommunicatorDataSourceProtocol : AnyObject

This is a protocol for a data source that defines a send and call back structure.

  • If this is set to true, then errors are ignored.

    Declaration

    Swift

    var suppressErrors: Bool { get set }
  • Calls a URL

    Declaration

    Swift

    func callURI(_ inCommunicator: BMLTCommunicator, inURIAsAString: String!, inCompletionBlock: BMLTCommunicator.RequestCompletionBlock!) -> Bool

    Parameters

    inCommunicator

    The communicator instance calling this.

    inURIAsAString

    This contains a string, with the URI.

    inCompletionBlock

    This is the completion block supplied by the caller. It is to be called upon receipt of data.

    inIsTest

    If true, then we don’t report task errors (the call is expected to fail).

    Return Value

    a Bool. True, if the call was successfully initiated.