SealdSdk_UpdateCurrentDevice method

int SealdSdk_UpdateCurrentDevice(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Pointer<NativeSealdError>> error
)

Updates the locally known information about the current device.

You should never have to call this manually, except if you getting 0 in sealdAccountInfo.DeviceExpires, which can happen if migrating from an older version of the SDK, or if the internal call to SealdSdk_UpdateCurrentDevice failed when calling SealdSdk_ImportIdentity.

@param sealdSdk The SealdSdk 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_UpdateCurrentDevice(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_UpdateCurrentDevice(
    sealdSdk,
    error,
  );
}