AndroidSurfaceView constructor

AndroidSurfaceView(
  1. World world, {
  2. required int width,
  3. required int height,
})

Throws a FynkelException with FynkelStatus.unsupported off Android.

Implementation

AndroidSurfaceView(World world, {required int width, required int height})
  : super._(
      world,
      width,
      height,
      WorldView._create((out) => fy_view_new_android(world.pointer, width, height, out)),
      // The plugin may be handing it a surface, so it's never freed by
      // the garbage collector, only by [dispose] after the plugin let go.
      finalize: false,
    );