startPreview method

Future<int> startPreview()

Starts the native preview stream and returns a texture id.

The camera must be opened with open first. Pass the returned id to buildPreview to display the video feed. Frames are drawn entirely at the native layer; no pixel data crosses the platform channel.

Implementation

Future<int> startPreview() {
  throw UnimplementedError('startPreview() has not been implemented.');
}