Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

ARDK 1.5.6

fun requestCameraFrame(callback: (reader: CameraFrameReader) -> Unit)

Requests a single camera frame and its associated spatial metadata.

When the next frame becomes available, the provided callback is invoked once with the raw image data, dimensions, and the device's pose at the moment the frame was captured.

This is an asynchronous one-shot request. To receive multiple frames, this method must be called again after the previous callback has fired.

Parameters

callback

A function invoked with:

  • data: The raw byte array of the camera frame.

  • width/height: Dimensions of the captured image in pixels.

  • pose: The Trans3f representing the device position and orientation in the AR session space.