Class ContextProvider

java.lang.Object
com.banuba.sdk.utils.ContextProvider

public class ContextProvider
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    ContextProvider()  
  • Method Summary

    Modifier and Type Method Description
    static android.content.res.AssetManager getAsset()  
    static android.content.Context getContext()  
    static java.io.InputStream openRawResource​(int id)  
    static void setContext​(android.content.Context context)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ContextProvider

      public ContextProvider()
  • Method Details

    • setContext

      public static void setContext​(@NonNull android.content.Context context)
    • getContext

      @NonNull public static android.content.Context getContext()
    • getAsset

      @NonNull public static android.content.res.AssetManager getAsset()
    • openRawResource

      @NonNull public static java.io.InputStream openRawResource​(@RawRes int id)