Class BatchMessagingWebViewJavascriptBridge


  • public class BatchMessagingWebViewJavascriptBridge
    extends java.lang.Object
    Class providing method implementation for the In-App Webview javascript SDK. Should not be used from native code.
    • Constructor Detail

      • BatchMessagingWebViewJavascriptBridge

        public BatchMessagingWebViewJavascriptBridge​(@NonNull
                                                     android.content.Context context,
                                                     BatchMessage message,
                                                     WebViewActionListener actionListener)
    • Method Detail

      • postMessage

        @NonNull
        public java.lang.String postMessage​(@Nullable
                                            java.lang.String method,
                                            @Nullable
                                            java.lang.String rawJsonArguments)
      • getInstallationID

        @Nullable
        protected java.lang.String getInstallationID()
      • getCustomLanguage

        @Nullable
        protected java.lang.String getCustomLanguage()
      • getCustomRegion

        @Nullable
        protected java.lang.String getCustomRegion()
      • getCustomUserID

        @Nullable
        protected java.lang.String getCustomUserID()
      • getAdvertisingID

        @NonNull
        protected java.lang.String getAdvertisingID()
                                             throws com.batch.android.BatchMessagingWebViewJavascriptBridge.BridgeResultProviderException
        Throws:
        com.batch.android.BatchMessagingWebViewJavascriptBridge.BridgeResultProviderException
      • isAdvertisingIDAllowedByConfig

        protected boolean isAdvertisingIDAllowedByConfig()
      • getAdvertisingIDValue

        @Nullable
        protected java.lang.String getAdvertisingIDValue()