Package org.webrtc

Class ContextUtils

java.lang.Object
org.webrtc.ContextUtils

public class ContextUtils extends Object
Class for storing the application context and retrieving it in a static context. Similar to org.chromium.base.ContextUtils.
  • Field Details

  • Constructor Details

    • ContextUtils

      public ContextUtils()
  • Method Details

    • initialize

      public static void initialize(Object applicationContext)
      Stores the application context that will be returned by getApplicationContext. This is called by PeerConnectionFactory.initialize. The application context must be set before creating a PeerConnectionFactory and must not be modified while it is alive.
    • getApplicationContext

      @Deprecated public static Object getApplicationContext()
      Deprecated.
      crbug.com/webrtc/8937
      Returns the stored application context.