SealdSdk_AddConnector method
int
SealdSdk_AddConnector(
- Pointer<
NativeSealdSdk> sealdSdk, - Pointer<
Utf8> value, - Pointer<
Utf8> connectorType, - Pointer<
NativeSealdPreValidationToken> preValidationToken, - Pointer<
Pointer< result,NativeSealdConnector> > - Pointer<
Pointer< error,NativeSealdError> >
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,
);
}