localSize(ofAssetPackWithID:calculationMethod:)
Calculates a locally available asset pack’s installation size.
Declaration
func localSize(ofAssetPackWithID assetPackID: String, calculationMethod: SizeCalculationMethod) async throws -> Int64Parameters
- assetPackID:
The asset pack’s ID.
- calculationMethod:
The method to use to calculate the asset pack’s installation size.
Return Value
The asset pack’s installation size in bytes.
Discussion
This is different than the download size, which could be smaller. Calculating the size of an asset pack that contains many files can take a long time.