Table of Contents

Struct AndroidSurfaceDescriptor

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

An Android window to present to, for MapHandle.AttachAndroidSurface().

public readonly record struct AndroidSurfaceDescriptor : IEquatable<AndroidSurfaceDescriptor>
Implements
Inherited Members

Remarks

Name the window by window, or by jni_env and surface. The session takes its own reference to the window, so you can release yours once the call returns.

See mln_android_surface_descriptor in the C API reference.

Constructors

AndroidSurfaceDescriptor(LogicalSize, NativePointer, NativePointer, NativePointer)

[SetsRequiredMembers]
public AndroidSurfaceDescriptor(LogicalSize LogicalSize, NativePointer Window, NativePointer JniEnv, NativePointer Surface)

Parameters

LogicalSize LogicalSize
Window NativePointer
JniEnv NativePointer
Surface NativePointer

Properties

JniEnv

The calling thread's JNIEnv*, with surface.

public NativePointer JniEnv { get; init; }

Property Value

NativePointer

LogicalSize

public required LogicalSize LogicalSize { get; init; }

Property Value

LogicalSize

Surface

An android.view.Surface, with jni_env.

public NativePointer Surface { get; init; }

Property Value

NativePointer

Window

Your ANativeWindow*, or null to name the window by surface.

public NativePointer Window { get; init; }

Property Value

NativePointer