Class UnbluClientConfiguration

    • Constructor Detail

      • UnbluClientConfiguration

        protected UnbluClientConfiguration()
        private constructor for immutable object creation
    • Method Detail

      • getUnbluBaseUrl

        @NonNull
        public java.lang.String getUnbluBaseUrl()
        Returns the currently configured base url.
        Returns:
        The currently configured base url.
      • getApiKey

        @NonNull
        public java.lang.String getApiKey()
        Returns the currently configured api key.
        Returns:
        The currently configured api key.
      • getInternalUrlPatternWhitelist

        @NonNull
        public java.util.List<java.util.regex.Pattern> getInternalUrlPatternWhitelist()
        Returns the currently configured URL patterns which may be accessed by the WebView
        Returns:
        the currently configured URL patterns which may be accessed by the WebView
      • getExternalLinkHandler

        @NonNull
        public UnbluExternalLinkHandler getExternalLinkHandler()
        Returns the currently configured URL patterns which may be opened in the system browser.
        Returns:
        the currently configured URL patterns which may be opened in the system browser.
      • getEntryPath

        @Nullable
        public java.lang.String getEntryPath()
        Returns the currently configured entry path
        Returns:
        The currently configured entry path
      • getCustomCookies

        @NonNull
        public java.util.Set<UnbluCookie> getCustomCookies()
        Returns a copy of the currently configured custom cookies.
        Returns:
        A map of the currently configured custom cookies.
      • getLanguage

        @Nullable
        public java.lang.String getLanguage()
        Returns the currently configured language.
        Returns:
        The currently configured language.
      • getNamedArea

        @Nullable
        public java.lang.String getNamedArea()
        Returns the currently configured named area.
        Returns:
        The currently configured named area.
      • isNotificationsEnabled

        public boolean isNotificationsEnabled()
      • isCameraUploadsEnabled

        public boolean isCameraUploadsEnabled()
        Returns:
        true if any of the upload file types is enabled.
      • isPhotoUploadsEnabled

        public boolean isPhotoUploadsEnabled()
      • isVideoUploadsEnabled

        public boolean isVideoUploadsEnabled()
      • isAudioUploadsEnabled

        public boolean isAudioUploadsEnabled()
      • getPreferencesStorage

        @NonNull
        public UnbluPreferencesStorage getPreferencesStorage()
        Returns the storage in which Unblu saves and restores the preferences of the SDK
        Returns:
        The configured storage.
      • getModules

        @NonNull
        public java.util.HashSet<UnbluModule> getModules()
        Returns a list of all configured modules
        Returns:
        A list of all configured modules
      • getDownloadHandler

        @NonNull
        public UnbluDownloadHandler getDownloadHandler()
        Returns the listener which is used to handle file downloads.
        Returns:
        The configured download listener.
      • getNotificationInterceptor

        public NotificationInterceptor getNotificationInterceptor()
        returns Notification interceptor in order to transform the notification before its display
        Returns:
        the notification transformer