Package 

Class RuntimeFfi

  • All Implemented Interfaces:
    java.lang.AutoCloseable , org.holochain.androidserviceruntime.service.Disposable , org.holochain.androidserviceruntime.service.RuntimeFfiInterface

    
    public class RuntimeFfi
     implements Disposable, AutoCloseable, RuntimeFfiInterface
                        

    Slim wrapper around HolochainRuntime, with types compatible with Uniffi-generated FFI bindings.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class RuntimeFfi.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
      RuntimeFfi(Pointer pointer)
      RuntimeFfi(NoPointer noPointer) This constructor can be used to instantiate a fake object.
    • Constructor Detail

      • RuntimeFfi

        RuntimeFfi(Pointer pointer)
      • RuntimeFfi

        RuntimeFfi(NoPointer noPointer)
        This constructor can be used to instantiate a fake object.
    • Method Detail

      • enableApp

         AppInfoFfi enableApp(String installedAppId)

        Enable an installed app

      • ensureAppWebsocket

         AppAuthFfi ensureAppWebsocket(String installedAppId)

        Get or create an app websocket with an authentication for the given app id

      • installApp

         AppInfoFfi installApp(InstallAppPayloadFfi payload)

        Install an app

      • listApps

         List<AppInfoFfi> listApps()

        List apps installed on the conductor

      • setupApp

         AppAuthFfi setupApp(InstallAppPayloadFfi payload, Boolean enableAfterInstall)

        Full process to setup an app

        Check if app is installed, if not install it, then optionally enable it. Then ensure there is an app websocket and authentication for it.

        If an app is already installed, it will not be enabled. It is only enabled after a successful install. The reasoning is that if an app is disabled after that point, it is assumed to have been manually disabled in the admin interface, which we don't want to override.

      • signZomeCall

         ZomeCallParamsSignedFfi signZomeCall(ZomeCallParamsFfi zomeCallUnsigned)

        Sign a zome call

      • stop

         Unit stop()

        Shutdown the holochain conductor