-
public interface UploadProgressCallbackNative-bridge progress sink for SessionBridge.uploadAttachment.
Threading. Fires on a Rust worker thread; the JNI bridge attaches the thread to the JVM via
AttachCurrentThreadAsDaemonbefore invoking onProgress. Implementations must not touch UI state directly — dispatch to the main thread (or use the higher-level OrigonClient.uploadAttachment which exposes a coroutineFlow).ABI-locked. The Rust JNI bridge looks up
onProgressby name with signature(JJ)V. Don't rename or change the parameter types.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonProgress(Long uploaded, Long total)-
-
Method Detail
-
onProgress
abstract Unit onProgress(Long uploaded, Long total)
- Parameters:
uploaded- bytes transferred so far.total- total bytes expected, or-1when unknown.
-
-
-
-