編集

次の方法で共有


AVCaptureDevice.SetFocusModeLockedAsync(Single) Method

Definition

Locks the lens position at the specified position.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<CoreMedia.CMTime> SetFocusModeLockedAsync (float lensPosition);
abstract member SetFocusModeLockedAsync : single -> System.Threading.Tasks.Task<CoreMedia.CMTime>
override this.SetFocusModeLockedAsync : single -> System.Threading.Tasks.Task<CoreMedia.CMTime>

Parameters

lensPosition
Single

Sets the lens position, must be a value between 0.0 and 1.0. The zero value representing the shortest position that the camera can focus and one representing the furthest position that it can focus. If you do not want to set the lens position, pass the

  value.

Returns

A task that represents the asynchronous SetFocusModeLocked operation. The value of the TResult parameter is of type System.Action<CoreMedia.CMTime>.

Attributes

Applies to