Class SdkConfig.UserAgentStringBuilder

  • Enclosing class:
    SdkConfig

    public static class SdkConfig.UserAgentStringBuilder
    extends java.lang.Object
    Helper class to generate the User-Agent String which follows the format: <app name>/<app version> <os>/<os version>/<device model> e.g. "APP/1.0.0 Android/6.0/LG_G3"
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createUserAgentString​(android.content.Context context)
      Gets the User-Agent String with the format <app name>/<app version> <os>/<os version>/<device model> e.g.
      • Methods inherited from class java.lang.Object

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

      • UserAgentStringBuilder

        public UserAgentStringBuilder()
    • Method Detail

      • createUserAgentString

        public static java.lang.String createUserAgentString​(android.content.Context context)
        Gets the User-Agent String with the format <app name>/<app version> <os>/<os version>/<device model> e.g. "APP/1.0.0 Android/6.0/LG_G3"
        Parameters:
        context - used to get resources
        Returns:
        the default User Agent String