Dil

DeviceStateSensorOrientationMap.Builder.AddOrientationForState Method

Definition

Add a sensor orientation for a given device state.

[Android.Runtime.Register("addOrientationForState", "(JJ)Landroid/hardware/camera2/params/DeviceStateSensorOrientationMap$Builder;", "", ApiSince=34)]
public Android.Hardware.Camera2.Params.DeviceStateSensorOrientationMap.Builder AddOrientationForState(long deviceState, long angle);
[<Android.Runtime.Register("addOrientationForState", "(JJ)Landroid/hardware/camera2/params/DeviceStateSensorOrientationMap$Builder;", "", ApiSince=34)>]
member this.AddOrientationForState : int64 * int64 -> Android.Hardware.Camera2.Params.DeviceStateSensorOrientationMap.Builder

Parameters

deviceState
Int64

The deviceState. Value is one of the following: DeviceStateSensorOrientationMap.NORMAL; DeviceStateSensorOrientationMap.FOLDED

angle
Int64

The orientation angle in degrees.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Add a sensor orientation for a given device state.

Each pair of deviceState and angle describes the camera sensor orientation when the device is in the matching deviceState. The angle is in degrees, and must be a multiple of 90.

Android reference for android.hardware.camera2.params.DeviceStateSensorOrientationMap.Builder.addOrientationForState.

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