def METHOD_NAME(self, config: Dict[str, Union[str, int, bool]]):
    """
    This function is called when the player settings are changed (normally this
    happens when the user changes the settings in the UI).
    :param config: A dictionary of configuration key -> configuration value.
    """