Context constructor

Context({
  1. ContextType contextType = ContextType.unknown,
  2. UserType userType = UserType.unknown,
  3. PayloadType payloadType = PayloadType.unknown,
  4. String description = '',
  5. String userId = '',
  6. String deviceId = '',
  7. String productId = '',
  8. String versionId = '',
  9. String installId = '',
  10. String locale = '',
  11. int sessionId = -1,
  12. bool isInternal = false,
  13. bool isSnapshot = false,
  14. String snapshotVariant = '',
  15. bool isReady = false,
  16. bool hasInput = false,
  17. String authSessionId = '',
  18. bool isAnonymous = false,
  19. bool isGlobal = false,
  20. bool receiveAllMessages = false,
  21. int preciseJoinedAt = 0,
  22. String userAgent = '',
  23. ClientType clientType = ClientType.unknown,
  24. String uniqueSessionId = '',
  25. Map<String, String> parameters = const {},
  26. SdkType sdkType = SdkType.unknown,
  27. int sdkCapability = 0,
  28. int viewportWidth = 0,
  29. int viewportHeight = 0,
  30. String theme = '',
  31. String timezone = '',
  32. bool isTouchDevice = false,
  33. String initialPath = '',
  34. String initialUrl = '',
  35. StyleFormat styleFormat = StyleFormat.css,
  36. bool supportsCompression = true,
  37. bool isSoftDisconnected = false,
  38. 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.snapshotVariant = '',
    this.isReady = false,
    this.hasInput = false,
    this.authSessionId = '',
    this.isAnonymous = false,
    this.isGlobal = false,
    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.initialUrl = '',
    this.styleFormat = StyleFormat.css,
    this.supportsCompression = true,
    this.isSoftDisconnected = false,
    this.softDisconnectAt = 0,
});