/// <summary> /// Get a pointer to the image data from a completed asynchronous request. This method should only succeed /// if <see cref="GetAsyncRequestStatus"/> returns <see cref="AsyncCameraImageConversionStatus.Ready"/>. /// </summary> /// <param name="requestId">The unique identifier associated with a request.</param> /// <param name="dataPtr">A pointer to the native buffer containing the data.</param> /// <param name="dataLength">The number of bytes in <paramref name="dataPtr"/>.</param> /// <returns><c>true</c> if <paramref name="dataPtr"/> and <paramref name="dataLength"/> were set and point /// to the image data.</returns> public override bool TryGetAsyncRequestData(int requestId, out IntPtr dataPtr, out int dataLength) { return(NativeApi.UnityARKit_Camera_TryGetAsyncRequestData(requestId, out dataPtr, out dataLength)); }