Contents

unregisterAsset(identifier:completion:)

Deallocates system memory for a given asset and removes it from the engine’s list of registered assets.

Declaration

func unregisterAsset(identifier: String, completion handler: (@Sendable (Bool) -> Void)? = nil)
func unregisterAsset(identifier: String) async -> Bool

Parameters

  • identifier:

    The unique name that the app defines for the sound asset.

  • handler:

    Code that the system runs after it unregisters the asset.

Discussion

See Also

Registering Sound Assets