APLAddConfigurationUpdatedListener function
Registers a callback that will be invoked every time Appfigurate has updated the configuration of the app. e.g.
@override
void initState() {
super.initState();
APLAddConfigurationUpdatedListener(configurationUpdated);
}
@override
void dispose() {
APLRemoveConfigurationUpdatedListener(configurationUpdated);
super.dispose();
}
void configurationUpdated(String? action) {
setState(() {});
}
See also APLRemoveConfigurationUpdatedListener.
Implementation
void APLAddConfigurationUpdatedListener(
APLConfigurationUpdatedListener listener) {
assert(_libraryInitialized);
_updatedListeners.add(listener);
}