Back to Filament

stream

docs/android/dokka/filament-android/com.google.android.filament/-stream/-builder/stream.md

1.75.0777 B
Original Source

//filament-android/com.google.android.filament/Stream/Builder/stream

stream

[main]
open fun stream(streamSource: Any): Stream.Builder

Creates a NATIVE stream. Native streams can sample data directly from an opaque platform object such as a SurfaceTexture on Android.

Return

This Builder, for chaining calls.

Parameters

main

streamSourcean opaque native stream handle, e.g.: on Android this must be a SurfaceTexture object

See also

Texture