NMAPendingOutOfBandOperations
@objc
public protocol NMAPendingOutOfBandOperations : NMAHttpOperation
The operation retrieving the out-of-band operations that have been started in the server, and must be handled by the application running the Mobile Authentication SDK on the device.
The retrieved operations have been neither timed-out, nor have been processed by the SDK,
that is, they have not been processed using a NMAOutOfBandOperation
operation.
Note
It is recommended to use this operation as sparsely as possible, because of the performance impact that it can have in the server. Do not use it for example with a polling mechanism.
Note
This is supported only when the backend uses nevisFIDO 7.2402.** or later.
Usage example:
id<NMAPendingOutOfBandOperation> pendingOutOfBandOperation = [[client operations] pendingOutOfBandOperation];
[pendingOutOfBandOperation onResult:^(NMAPendingOutOfBandOperationResult * _Nonnull result) {...}];
[pendingOutOfBandOperation execute];
See
payload
-
Specifies the object that will be invoked with the
NMAPendingOutOfBandOperationsResult
containing the pending out-of-band operations for this application and the errors (if any). This object will be invoked in theDispatchQueue.main
thread.Important
Providing theonResult
block is required.Declaration
Swift
@discardableResult func onResult(_ onResult: @escaping (NMAPendingOutOfBandOperationsResult) -> ()) -> NMAPendingOutOfBandOperations
Parameters
onResult
the block to execute when the operation finishes.
Return Value
the
NMAPendingOutOfBandOperations
builder.