needs_reload


Description:

public static bool needs_reload (Type extractable_type, string? id)

Indicate that an existing Asset in the cache should be reloaded upon the next request.

This can be used when some condition has changed, which may require that an existing asset should be updated. For example, if an external resource has changed or now become available.

Note, the asset is not immediately changed, but will only actually reload on the next call to Asset.request or Asset.request_async.

Parameters:

extractable_type

The extractable_type of the asset that needs reloading

id

The id of the asset asset that needs reloading

Returns:

true if the specified asset exists in the cache and could be marked for reloading.




2022 vala-language.org