setTCCParams method

Future<bool> setTCCParams(
  1. TccParams params,
  2. SuccessCompletion? successCompletion
)

Bool 'success' is not only passed to SuccessCompletion, but for convenience it is also returned as Future

Sets the given TCCParams to the RFID session. The parameters are required to be set before starting RFID session.

params TCC related parameters.

successCompletion Completion block of the operation.

Note: for convinience function returns Future<bool>. This is the same bool that is returned by SuccessCompletion, indicating whether the function has succeeded or not. If you don't need to handle an error, you can leave successCompletion as null and only use the return value of the function.

Implementation

Future<bool> setTCCParams(
  TccParams params,
  SuccessCompletion? successCompletion,
) async {
  return _successCompletionFromJson(
    await _bridge.invokeMethod("setTCCParams", [params.toJson()]),
    successCompletion,
  );
}