Add documentation to embedder locale callback (flutter/engine#25437)

The FlutterComputePlatformResolvedLocaleCallback does not pass the
standard user_data baton. This was an unintentional omission in the
original patch.

Add documentation to that effect and link to the bug report:
https://github.com/flutter/flutter/issues/79826
This commit is contained in:
Chris Bracken
2021-04-06 09:46:31 -07:00
committed by GitHub
parent 2091ba8847
commit 45c54c08e2

View File

@@ -1121,6 +1121,14 @@ typedef struct {
const char* variant_code;
} FlutterLocale;
/// Callback that returns the system locale.
///
/// Embedders that implement this callback should return the `FlutterLocale`
/// from the `supported_locales` list that most closely matches the
/// user/device's preferred locale.
///
/// This callback does not currently provide the user_data baton.
/// https://github.com/flutter/flutter/issues/79826
typedef const FlutterLocale* (*FlutterComputePlatformResolvedLocaleCallback)(
const FlutterLocale** /* supported_locales*/,
size_t /* Number of locales*/);