PROTOCOL

HaapiFlowResult

public protocol HaapiFlowResult

A set of methods that provides a result at the end of the Haapi flow or an error during the flow.

Methods

didReceiveOAuthModel(_:)

func didReceiveOAuthModel(_ oAuthModel: OAuthModel)

This function is invoked when receiving an OAuthModel when the Haapi flow is completed.

Parameters

Name Description
oAuthModel An OAuthModel that can contain a token object or an oauth error.

didReceiveError(_:)

func didReceiveError(_ error: Error)

This function is invoked when an error occurs during the Haapi flow.

Parameters

Name Description
error An error.