Skip to main content
Every SDK exposes the same operations over the same data types. This page is the cross-language map; each SDK guide has the full, idiomatic signatures and examples for one platform.

Operations across SDKs

What each operation does

Async model

Results & errors

  • Kotlin / Java return an MBKYCResult<T> (Ok / Err); getOrThrow() converts to exceptions.
  • Swift throws MBKYCError; C# throws MBKYCException; the web SDK rejects with MBKYCError.
  • C returns/owns an MBKYC_Error* the caller must free.
All of them carry the same error codes.

Cancellation

Every long-running operation can be cancelled:
  • Swift / Kotlin — cancel the surrounding Task / coroutine.
  • C# — pass a CancellationToken; cancelling resolves the task with TaskCanceledException.
  • C — create an MBKYC_CancellationTokenHandle, pass it to the call, and mbkyc_cancel_token_cancel(token).
  • Web — call client.cancel().