Class Recycler

java.lang.Object
com.banuba.sdk.Recycler

public final class Recycler extends Object
Helper class to manually release Banuba SDK native objects before GC run.
  • Method Details

    • recycle

      public static <T> T recycle(@Nullable T obj)
      Recycle Banuba SDK object. Call to force-release native memory associated with the object. The object must not be reused after this operation. Usage `obj = Recycler.recycle(obj);`
      Type Parameters:
      T -
      Parameters:
      obj -
      Returns:
      null