Package com.alivc.live.pusher
Class AlivcLivePushInstance
- java.lang.Object
-
- com.alivc.live.pusher.AlivcLivePushInstance
-
public class AlivcLivePushInstance extends java.lang.Object
Created by baorunchen on 2022/6/21.Used to load sdk common instance,
-
-
Constructor Summary
Constructors Constructor Description AlivcLivePushInstance()
-
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.
-
-
-
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.
-
-