getPluginRegisterFunctionV1 function

NativePointer getPluginRegisterFunctionV1()

Returns the function that registers a plugin's style layer types.

Pass the function to the plugin's registration entry point before loading a style that uses the plugin's layer types. Plugin callbacks run on library threads and can keep running while the process exits, so they must not use state that the process destroys at exit.

See mln_plugin_get_register_function_v1 in the C API reference.

Implementation

NativePointer getPluginRegisterFunctionV1() {
  ensureAbiVersion();
  final nativeResult = raw.mln_plugin_get_register_function_v1();
  return NativePointer(nativeResult.address);
}