BKClientResolveDelegate

public protocol BKClientResolveDelegate

Delegate for resolving of one single element.

The delegates are registered by BKClient.resolveDelegate

  • Will be called once after calling BKClient.resolveInputElement(input: BKInputElement)

    If the element can not be resolved because of no data or any error, onResolveInputElementError(inputElement: BKInputElement, errorCode: BKClient.ErrorCode) will be called instead.

    Declaration

    Swift

    func onResolveInputElementResult(_ outputElement: BKOutputElement)

    Parameters

    outputElement

    BKOutputElement that include a valid BKResolveData object.

  • Will be called once after calling BKClient.resolveInputElement(input: BKInputElement)

    If the element can successfully be resolved, onResolveInputElementResult(outputElement: BKOutputElement) will be called instead.

    Declaration

    Swift

    func onResolveInputElementError(_ inputElement: BKInputElement, errorCode: BKClient.ErrorCode)

    Parameters

    inputElement

    the unmodified inputElement parameter of BKClient.resolveInputElement(input: BKInputElement)

    errorCode

    error code