WLDelegateSwift

public protocol WLDelegateSwift

A protocol that defines methods that a delegate should implement, to receive notifications about the success or failure of the method call.

  • This method will be called if any kind of failure occurred during the execution.

    Declaration

    Swift

    func onSuccess(response: WLResponseSwift)

    Parameters

    response

    Contains the results from the server, along with any invocation context object and status.

  • This method will be called if any kind of failure occurred during the execution.

    Declaration

    Swift

    func onFailure(response: WLFailResponseSwift)

    Parameters

    response

    Contains the error code and error message from the server.