SealdSdk_AddConnector method

int SealdSdk_AddConnector(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Utf8> value,
  3. Pointer<Utf8> connectorType,
  4. Pointer<NativeSealdPreValidationToken> preValidationToken,
  5. Pointer<Pointer<NativeSealdConnector>> result,
  6. Pointer<Pointer<NativeSealdError>> error,
)

Add a connector to the current identity. If no preValidationToken is given, the connector will need to be validated before use.

@param sealdSdk The SealdSdk instance. @param value The value of the connector to add. @param connectorType The type of the connector. @param preValidationToken Given by your server to authorize the adding of a connector. @param result A pointer where to store the created SealdConnector instance. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdSdk_AddConnector(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<pkg_ffi.Utf8> value,
  ffi.Pointer<pkg_ffi.Utf8> connectorType,
  ffi.Pointer<NativeSealdPreValidationToken> preValidationToken,
  ffi.Pointer<ffi.Pointer<NativeSealdConnector>> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_AddConnector(
    sealdSdk,
    value,
    connectorType,
    preValidationToken,
    result,
    error,
  );
}