HatangAppInfo class
What the SDK tells the gateway about the host app and device. The Flutter
layer fills it from package_info_plus and device_info_plus; pass your
own to HatangChat.configure to override.
- Annotations
Constructors
Properties
- appVersion → String?
-
Host app version (
1.4.0).final - buildNumber → String?
-
Host app build number.
final
- client → ClientInfo
-
The socket
clientpayload.no setter - deviceLocale → String?
-
Device language tag (
vi-VN).final - deviceModel → String?
-
Device model.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- os → String
-
ios,android,web,macos,windows,linuxorother.final - osVersion → String?
-
OS version.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdk → String
-
flutter/0.1.0.no setter - userAgent → String
-
The
User-Agentfor REST calls, e.g.hatang-chat-flutter/0.2.0 (ios/18.1; protocol/1).no setter - version → String?
-
Version with build number, as sent in
app.version.no setter
Methods
-
context(
String installId, {String? locale}) → AppContext -
The bootstrap/auth
apppayload forinstallId, with every field cut to the gateway's limits so an unusual platform string never turns into a rejected bootstrap. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited