ILinkTransport
Protocol anchorLink transports need to implement. A transport is responsible for getting the request to the user, e.g. by opening request URIs or displaying QR codes.
Summary
public
ILinkStorage
Storage
Can be implemented if transport provides a storage as well.
public void
OnRequest
(SigningRequest request, Action< object > cancel)
Present a signing request to the user.
public void
OnSuccess
(SigningRequest request,
TransactResult
result)
Called if the request was successful.
public void
OnFailure
(SigningRequest request, Exception exception)
Called if the request failed.
public void
OnSessionRequest
(
LinkSession
session, SigningRequest request, Action< object > cancel)
Called when a session request is initiated.
public Task< SigningRequest >
Prepare
(SigningRequest request,
LinkSession
session)
Can be implemented to modify request just after it has been created.
public void
ShowLoading
()
Called immediately when the transaction starts
Members
public
ILinkStorage
Storage
Can be implemented if transport provides a storage as well.
public void
OnRequest
(SigningRequest request, Action< object > cancel)
Present a signing request to the user.
Parameters
request
The signing request.cancel
Can be called to abort the request.
public void
OnSuccess
(SigningRequest request,
TransactResult
result)
Called if the request was successful.
public void
OnFailure
(SigningRequest request, Exception exception)
Called if the request failed.
public void
OnSessionRequest
(
LinkSession
session, SigningRequest request, Action< object > cancel)
Called when a session request is initiated.
Parameters
session
Session where the request originated.request
Signing request that will be sent over the session.
public Task< SigningRequest >
Prepare
(SigningRequest request,
LinkSession
session)
Can be implemented to modify request just after it has been created.
public void
ShowLoading
()
Called immediately when the transaction starts
Last updated