Class AlivcLivePushInstance


  • public class AlivcLivePushInstance
    extends java.lang.Object
    Created by baorunchen on 2022/6/21.

    Used to load sdk common instance,

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void loadInstance​(android.content.Context context)
      Load instance before use live push sdk!!!
      static void loadLibrariesOnce()
      Load cpp so libs once.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AlivcLivePushInstance

        public AlivcLivePushInstance()
    • Method Detail

      • loadInstance

        public static void loadInstance​(@NonNull
                                        android.content.Context context)
        Load instance before use live push sdk!!!

        You can call this method when app launch, or the beginning of calling live push method.

        Parameters:
        context - android context
      • loadLibrariesOnce

        public static void loadLibrariesOnce()
        Load cpp so libs once.

        Do it before using lib.so!!! Otherwise, it will cause crash!!! It should be called in the static{} method in all java classes with native methods.