Object WebViewHelper

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getJavaScriptForWebView(ConsentToken consentToken, String appId, String userId, String extra) Generate JavaScript to pass consent information to the Web SDK
      final String getQueryStringForWebView(ConsentToken consentToken, String appId, String userId) Generate a string that can be appended to a query-string to pass consent to the Web SDK via a URL.
      final JsonArray toJSONArray(Set<String> strings) Convert a set of purpose/vendor IDs to a JSON array object
      final String toJSON(ConsentToken consentToken, String appId, String userId) Generate a JSON object representing the current consent information of the user to pass to the Web SDK as external consent.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getJavaScriptForWebView

         final String getJavaScriptForWebView(ConsentToken consentToken, String appId, String userId, String extra)

        Generate JavaScript to pass consent information to the Web SDK

        Parameters:
        consentToken - the registered content token
        appId - package name of the app
        userId - User ID
        extra - Extra JavaScript to inject in the returned tag
      • toJSONArray

         final JsonArray toJSONArray(Set<String> strings)

        Convert a set of purpose/vendor IDs to a JSON array object

      • toJSON

         final String toJSON(ConsentToken consentToken, String appId, String userId)

        Generate a JSON object representing the current consent information of the user to pass to the Web SDK as external consent.