Contents

venue(for:)

Returns an electricity venue for the given venue identifier.

Declaration

static func venue(for id: UUID) async throws -> EnergyVenue

Parameters

  • id:

    The requested venue’s identifier.

Discussion

This method throws EnergyKitError.venueUnavailable if the framework can’t provide the requested venue.

See Also

Returning electricity sites