@@ -2293,6 +2293,8 @@ internal open class UniffiVTableCallbackInterfaceWidgetCapabilitiesProvider(
2293
2293
2294
2294
2295
2295
2296
+
2297
+
2296
2298
2297
2299
2298
2300
@@ -2549,6 +2551,8 @@ internal interface UniffiLib : Library {
2549
2551
): Pointer
2550
2552
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_sliding_sync_version_builder(`ptr`: Pointer,`versionBuilder`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
2551
2553
): Pointer
2554
+ fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_system_is_memory_constrained(`ptr`: Pointer,uniffi_out_err: UniffiRustCallStatus,
2555
+ ): Pointer
2552
2556
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_use_event_cache_persistent_storage(`ptr`: Pointer,`value`: Byte,uniffi_out_err: UniffiRustCallStatus,
2553
2557
): Pointer
2554
2558
fun uniffi_matrix_sdk_ffi_fn_method_clientbuilder_user_agent(`ptr`: Pointer,`userAgent`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
@@ -3741,6 +3745,8 @@ internal interface UniffiLib : Library {
3741
3745
): Short
3742
3746
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_sliding_sync_version_builder(
3743
3747
): Short
3748
+ fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_system_is_memory_constrained(
3749
+ ): Short
3744
3750
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_use_event_cache_persistent_storage(
3745
3751
): Short
3746
3752
fun uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_user_agent(
@@ -4777,6 +4783,9 @@ private fun uniffiCheckApiChecksums(lib: UniffiLib) {
4777
4783
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_sliding_sync_version_builder() != 39381.toShort()) {
4778
4784
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4779
4785
}
4786
+ if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_system_is_memory_constrained() != 6898.toShort()) {
4787
+ throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4788
+ }
4780
4789
if (lib.uniffi_matrix_sdk_ffi_checksum_method_clientbuilder_use_event_cache_persistent_storage() != 58836.toShort()) {
4781
4790
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
4782
4791
}
@@ -8568,6 +8577,17 @@ public interface ClientBuilderInterface {
8568
8577
8569
8578
fun `slidingSyncVersionBuilder`(`versionBuilder`: SlidingSyncVersionBuilder): ClientBuilder
8570
8579
8580
+ /**
8581
+ * Tell the client that the system is memory constrained, like in a push
8582
+ * notification process for example.
8583
+ *
8584
+ * So far, at the time of writing (2025-04-07), it changes the defaults of
8585
+ * [`SqliteStoreConfig`], so one might not need to call
8586
+ * [`ClientBuilder::session_cache_size`] and siblings for example. Please
8587
+ * check [`SqliteStoreConfig::with_low_memory_config`].
8588
+ */
8589
+ fun `systemIsMemoryConstrained`(): ClientBuilder
8590
+
8571
8591
/**
8572
8592
* Whether to use the event cache persistent storage or not.
8573
8593
*
@@ -9081,6 +9101,27 @@ open class ClientBuilder: Disposable, AutoCloseable, ClientBuilderInterface {
9081
9101
9082
9102
9083
9103
9104
+ /**
9105
+ * Tell the client that the system is memory constrained, like in a push
9106
+ * notification process for example.
9107
+ *
9108
+ * So far, at the time of writing (2025-04-07), it changes the defaults of
9109
+ * [`SqliteStoreConfig`], so one might not need to call
9110
+ * [`ClientBuilder::session_cache_size`] and siblings for example. Please
9111
+ * check [`SqliteStoreConfig::with_low_memory_config`].
9112
+ */override fun `systemIsMemoryConstrained`(): ClientBuilder {
9113
+ return FfiConverterTypeClientBuilder.lift(
9114
+ callWithPointer {
9115
+ uniffiRustCall() { _status ->
9116
+ UniffiLib.INSTANCE.uniffi_matrix_sdk_ffi_fn_method_clientbuilder_system_is_memory_constrained(
9117
+ it, _status)
9118
+ }
9119
+ }
9120
+ )
9121
+ }
9122
+
9123
+
9124
+
9084
9125
/**
9085
9126
* Whether to use the event cache persistent storage or not.
9086
9127
*
0 commit comments