Function SDL_GetAppMetadataProperty
pub unsafe extern "C" fn SDL_GetAppMetadataProperty(
name: *const i8,
) -> *const i8
Available on crate feature
dep_sdl3
only.Expand description
Get metadata about your app.
This returns metadata previously set using SDL_SetAppMetadata()
or
SDL_SetAppMetadataProperty()
. See SDL_SetAppMetadataProperty()
for the list
of available properties and their meanings.
§Parameters
name
: the name of the metadata property to get.
§Return value
Returns the current value of the metadata property, or the default if it is not set, NULL for properties with no default.
§Thread safety
It is safe to call this function from any thread, although
the string returned is not protected and could potentially be
freed if you call SDL_SetAppMetadataProperty()
to set that
property from another thread.
§Availability
This function is available since SDL 3.2.0.