getNextAction method

Future<bool> getNextAction(
  1. {required dynamic onResult(
    1. NextActionResult
    )}
)

Use this method to get the next action that you should let the user perform based on the predefined sequence in the SDK. Actions can be found here DigifiedAction

  • onResult (required) A callback method with the NextActionResult to be performed

Implementation

Future<bool> getNextAction({required Function(NextActionResult) onResult}) {
  if (!_isInitializeCalled) {
    print("Digifed: call initialize first!");
    return Future.value(false);
  }
  return NextActionMethod().invoke(onResult: onResult);
}