Package 

Class ZeroGpuSdk


  • 
    public final class ZeroGpuSdk
    
                        

    The thin, data-driven interpreter. It registers compiled engines once, loads assigned models once, and keeps a WebSocket session that mirrors the app lifecycle:

    • foreground → (re-)register and open a socket so the device is idle and ready for tasks;

    • background → close the socket (the backend marks the device inactive);

    • foreground again → a fresh register + socket.

    Transient drops while foregrounded auto-reconnect with backoff. A single OkHttpClient is shared across reconnections and only one socket is alive at a time (no hanging connections).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class ZeroGpuSdk.Companion
    • Method Summary

      Modifier and Type Method Description
      final Unit start()
      final Unit stop()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait