/// <summary>
 /// Determine whether a native image handle returned by <see cref="TryAcquireLatestImage"/> is currently
 /// valid. An image may become invalid if it has been disposed.
 /// </summary>
 /// <remarks>
 /// If a handle is valid, <see cref="TryConvert"/> and <see cref="TryGetConvertedDataSize"/> should not fail.
 /// </remarks>
 /// <param name="nativeHandle">A unique identifier for the camera image in question.</param>
 /// <returns><c>true</c>, if it is a valid handle. Otherwise, <c>false</c>.</returns>
 /// <seealso cref="DisposeImage"/>
 public override bool NativeHandleValid(
     int nativeHandle)
 {
     return(NativeApi.UnityARKit_Camera_HandleValid(nativeHandle));
 }
Exemple #2
0
 /// <summary>
 /// Determine whether a native image handle returned by <see cref="TryAcquireLatestImage"/> is currently
 /// valid. An image may become invalid if it has been disposed.
 /// </summary>
 /// <remarks>
 /// If a handle is valid, <see cref="TryConvert"/> and <see cref="TryGetConvertedDataSize"/> should not fail.
 /// </remarks>
 /// <param name="nativeHandle">A unique identifier for the camera image in question.</param>
 /// <returns><c>true</c>, if it is a valid handle. Otherwise, <c>false</c>.</returns>
 /// <seealso cref="DisposeImage"/>
 public override bool NativeHandleValid(int nativeHandle) => NativeApi.UnityARKit_Camera_HandleValid(nativeHandle);