HatangAppInfo

data class HatangAppInfo(val appVersion: String? = null, val buildNumber: String? = null, val os: String = "android", val osVersion: String? = null, val deviceModel: String? = null, val deviceLocale: String? = null)

What the SDK tells the gateway about the host app and device. The Android module fills it from the package manager and Build; hosts may pass their own.

Constructors

Link copied to clipboard
constructor(appVersion: String? = null, buildNumber: String? = null, os: String = "android", osVersion: String? = null, deviceModel: String? = null, deviceLocale: String? = null)

Properties

Link copied to clipboard
val appVersion: String? = null

Host app version (1.4.0).

Link copied to clipboard
val buildNumber: String? = null

Host app build number (version code).

Link copied to clipboard

The socket client payload.

Link copied to clipboard
val deviceLocale: String? = null

Device language tag (vi-VN).

Link copied to clipboard
val deviceModel: String? = null

Device model.

Link copied to clipboard
val os: String

android, ios, web, macos, windows, linux or other.

Link copied to clipboard
val osVersion: String? = null

OS version (14).

Link copied to clipboard
val sdk: String

android/0.1.0.

Link copied to clipboard

The User-Agent for REST and socket calls: hatang-chat-android/0.1.0 (android/14; protocol/1).

Link copied to clipboard

Version with build number, as sent in app.version (1.4.0+12).

Functions

Link copied to clipboard
fun context(installId: String, locale: String? = null): AppContext

The bootstrap/auth app payload for installId, with every field cut to the gateway's limits so an unusual platform string never turns into a rejected bootstrap.