MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_camera_transition_handler Struct Reference

#include <map.h>

Data Fields

void * user_data
mln_user_data_release release_user_data
mln_delivery_queue queue

Detailed Description

Callback or queue state that one camera command copies to report the end of its transitions.

A handler with neither a callback nor a queue is disabled, and a disabled handler must not carry release_user_data. See mln_animation_options.end_handler for when the callback runs.

Field Documentation

◆ queue

mln_delivery_queue mln_camera_transition_handler::queue

Optional. Queue delivery in place of callback: the end is copied into one MLN_DELIVERY_TYPE_CAMERA_TRANSITION_END delivery carrying user_data, followed by one MLN_DELIVERY_TYPE_RETIRED delivery where callback mode runs release_user_data. A command rejects an invalid queue handle with MLN_STATUS_INVALID_ARGUMENT and a released queue with MLN_STATUS_INVALID_STATE.

◆ release_user_data

mln_user_data_release mln_camera_transition_handler::release_user_data

Optional. Releases user_data on the runtime worker after the callback returns. A rejected command runs neither callback, and the caller keeps user_data. Null in queue mode.

◆ user_data

void* mln_camera_transition_handler::user_data

Opaque host token in queue mode; native code never dereferences it.


The documentation for this struct was generated from the following file: