Type Method

loadBodyTracked(contentsOf:withName:)

Blocks your app while loading a body-tracked entity from a file URL.

Declaration

static func loadBodyTracked(contentsOf url: URL, withName resourceName: String? = nil) throws -> BodyTrackedEntity

Parameters

url

A file URL representing the file to load.

resourceName

A unique name to assign to the loaded resource, for use in network synchronization.

Return Value

The root entity in the loaded file, cast as a BodyTrackedEntity.

See Also

Loading a Flattened Body-Tracked Entity

static func loadBodyTracked(named: String, in: Bundle?) -> BodyTrackedEntity

Blocks your app while loading a body-tracked entity from a file in a bundle.

static func loadBodyTrackedAsync(named: String, in: Bundle?) -> LoadRequest<BodyTrackedEntity>

Loads a body-tracked entity from a file in a bundle asynchronously.