Partager via


DeviceStateSensorOrientationMap.GetSensorOrientation(Int64) Method

Definition

Return the logical camera sensor orientation given a specific device fold state.

[Android.Runtime.Register("getSensorOrientation", "(J)I", "", ApiSince=32)]
public int GetSensorOrientation (long deviceState);
[<Android.Runtime.Register("getSensorOrientation", "(J)I", "", ApiSince=32)>]
member this.GetSensorOrientation : int64 -> int

Parameters

deviceState
Int64

Device fold state

Returns

Valid android.hardware.camera2.CameraCharacteristics#SENSOR_ORIENTATION for any supported device fold state

Attributes

Remarks

Return the logical camera sensor orientation given a specific device fold state.

Java documentation for android.hardware.camera2.params.DeviceStateSensorOrientationMap.getSensorOrientation(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to