Context constructor
Context({
- ContextType contextType = ContextType.unknown,
- UserType userType = UserType.unknown,
- PayloadType payloadType = PayloadType.unknown,
- String description = '',
- String userId = '',
- String deviceId = '',
- String productId = '',
- String versionId = '',
- String installId = '',
- String locale = '',
- int sessionId = -1,
- bool isInternal = false,
- bool isSnapshot = false,
- bool isReady = false,
- bool hasInput = false,
- String channelLocale = '',
- String embeddedSpaceId = '',
- String authSessionId = '',
- bool receiveAllMessages = false,
- int preciseJoinedAt = 0,
- String userAgent = '',
- ClientType clientType = ClientType.unknown,
- String uniqueSessionId = '',
- Map<
String, String> parameters = const {}, - SdkType sdkType = SdkType.unknown,
- int sdkCapability = 0,
- int viewportWidth = 0,
- int viewportHeight = 0,
- String theme = '',
- String timezone = '',
- bool isTouchDevice = false,
- String initialPath = '',
- StyleFormat styleFormat = StyleFormat.css,
- bool supportsCompression = true,
- bool isSoftDisconnected = false,
- int softDisconnectAt = 0,
Implementation
Context({
this.contextType = ContextType.unknown,
this.userType = UserType.unknown,
this.payloadType = PayloadType.unknown,
this.description = '',
this.userId = '',
this.deviceId = '',
this.productId = '',
this.versionId = '',
this.installId = '',
this.locale = '',
this.sessionId = -1,
this.isInternal = false,
this.isSnapshot = false,
this.isReady = false,
this.hasInput = false,
this.channelLocale = '',
this.embeddedSpaceId = '',
this.authSessionId = '',
this.receiveAllMessages = false,
this.preciseJoinedAt = 0,
this.userAgent = '',
this.clientType = ClientType.unknown,
this.uniqueSessionId = '',
this.parameters = const {},
this.sdkType = SdkType.unknown,
this.sdkCapability = 0,
this.viewportWidth = 0,
this.viewportHeight = 0,
this.theme = '',
this.timezone = '',
this.isTouchDevice = false,
this.initialPath = '',
this.styleFormat = StyleFormat.css,
this.supportsCompression = true,
this.isSoftDisconnected = false,
this.softDisconnectAt = 0,
});