# FocalLengthInfo (/zh-CN/api-reference/rtc/flutter/class-focallengthinfo)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_focallengthinfo__prototype"></a>

```dart
@JsonSerializable(explicitToJson: true, includeIfNull: false)
class FocalLengthInfo {
  const FocalLengthInfo({this.cameraDirection, this.focalLengthType});

  @JsonKey(name: 'cameraDirection')
  final int? cameraDirection;

  @JsonKey(name: 'focalLengthType')
  final CameraFocalLengthType? focalLengthType;

  factory FocalLengthInfo.fromJson(Map<String, dynamic> json) =>
      _$FocalLengthInfoFromJson(json);

  Map<String, dynamic> toJson() => _$FocalLengthInfoToJson(this);
}
```

<a id="class_focallengthinfo__detailed_desc"></a>

:::note
注： 仅适用于 Android 和 iOS。
:::

<a id="class_focallengthinfo__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="cameradirection"></a>
<Parameter name="cameraDirection">

摄像头方向。详见 [CameraDirection](/zh-CN/api-reference/rtc/flutter/enum-cameradirection)。

</Parameter>
<a id="focallengthtype"></a>
<Parameter name="focalLengthType">

焦距类型。详见 [CameraFocalLengthType](/zh-CN/api-reference/rtc/flutter/enum-camerafocallengthtype)。

</Parameter>
</ParameterList>
