TRTCGSensorMode enum

G-sensor switch (for mobile devices only)

Inheritance
Annotations
  • @JsonEnum(alwaysCreate: true)

Constructors

TRTCGSensorMode()
const

Values

disable → const TRTCGSensorMode
  • Do not adapt to G-sensor orientation
  • This mode is the default value for desktop platforms.
  • In this mode, the video image published by the current user is not affected by the change of the G-sensor orientation.
uiAutoLayout → const TRTCGSensorMode
  • Adapt to G-sensor orientation
  • This mode is the default value on mobile platforms.
  • In this mode, the video image published by the current user is adjusted according to the G-sensor orientation, while the orientation of the local preview image remains unchanged.
  • One of the adaptation modes currently supported by the SDK is as follows: when the phone or tablet is upside down, in order to ensure that the screen orientation seen by the remote user is normal, the SDK will automatically rotate the published video image by 180 degrees.
  • If the UI layer of your application has enabled G-sensor adaption, we recommend you use the uiFixLayout mode.
uiFixLayout → const TRTCGSensorMode
  • Adapt to G-sensor orientation
  • In this mode, the video image published by the current user is adjusted according to the G-sensor orientation, and the local preview image will also be rotated accordingly.
  • One of the features currently supported is as follows: when the phone or tablet is upside down, in order to ensure that the screen orientation seen by the remote user is normal, the SDK will automatically rotate the published video image by 180 degrees.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<TRTCGSensorMode>
A constant List of the values in this enum, in order of their declaration.