Table of Contents

Struct AndroidSurfaceReplacement

Namespace
Maplibre.NativeFfi
Assembly
Maplibre.NativeFfi.dll

A new Android window for RenderSessionHandle.SetAndroidSurfaceTargetAsync().

public readonly record struct AndroidSurfaceReplacement : IEquatable<AndroidSurfaceReplacement>
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_replacement in the C API reference.

Constructors

AndroidSurfaceReplacement(LogicalSize, NativePointer, NativePointer, NativePointer)

[SetsRequiredMembers]
public AndroidSurfaceReplacement(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