Package 

Interface UploadProgressCallback


  • 
    public interface UploadProgressCallback
    
                        

    Native-bridge progress sink for SessionBridge.uploadAttachment.

    Threading. Fires on a Rust worker thread; the JNI bridge attaches the thread to the JVM via AttachCurrentThreadAsDaemon before invoking onProgress. Implementations must not touch UI state directly — dispatch to the main thread (or use the higher-level OrigonClient.uploadAttachment which exposes a coroutine Flow).

    ABI-locked. The Rust JNI bridge looks up onProgress by name with signature (JJ)V. Don't rename or change the parameter types.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit onProgress(Long uploaded, Long total)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onProgress

         abstract Unit onProgress(Long uploaded, Long total)
        Parameters:
        uploaded - bytes transferred so far.
        total - total bytes expected, or -1 when unknown.