AppSettingsHandler

public class AppSettingsHandler

Application settings handler — process-wide singleton.

Manages fetching, caching, and refreshing ai.nexconn.chat.model.AppSettings, including:

  • Listening for connection-status changes and auto-refreshing settings on reconnect
  • Caching the latest AppSettings in memory
  • Providing accessors for individual feature flags

Since

5.28.0

Properties

Link copied to clipboard
public AppSettings appSettings

Functions

Link copied to clipboard
public AppSettings getAppSettings()
Returns the cached application settings.
Link copied to clipboard
Returns the process-wide singleton instance.
Link copied to clipboard
public boolean hasInit()
Returns whether AppSettings has been successfully fetched at least once.
Link copied to clipboard
Returns whether friend online-status subscription is enabled.
Link copied to clipboard
public boolean isOnlineStatusEnable()
Returns whether the online-status feature is enabled (affects UI visibility).
Link copied to clipboard
Returns whether general online-status subscription is enabled.
Link copied to clipboard
public boolean isReadReceiptV5Enabled(ChannelType type)
Returns whether read receipts (V5) are enabled for the given channel type.
Link copied to clipboard
public boolean isUserProfileEnabled()
Returns whether user-profile hosting is enabled.