Interface IEngine

All Known Implementing Classes:
Engine, Engine, Engine, Engine, Engine

public interface IEngine
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    init(android.content.Context context, IEngineCallback callback)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use #init(Consumer<Boolean>) instead (for removal).
    void
    init(androidx.core.util.Consumer<Boolean> onFinish)
    Initializes the engine with the given callback.
    void
    Releases the engine.
  • Method Details

    • init

      @Deprecated(forRemoval=true) default void init(android.content.Context context, IEngineCallback callback) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use #init(Consumer<Boolean>) instead (for removal).
      Initializes the engine with the given context and callback.
      Parameters:
      context - Ignored, as The Vsdk context will be used.
      callback - The callback to handle engine events.
      Throws:
      Exception - If the initialization fails.
    • init

      void init(androidx.core.util.Consumer<Boolean> onFinish) throws Exception
      Initializes the engine with the given callback.
      Parameters:
      onFinish - The callback to call when the engine finishes initialization.
      Throws:
      Exception - If the initialization fails.
    • release

      void release() throws Exception
      Releases the engine.
      Throws:
      Exception - If the release fails.