installBundleFromBytes method

Future<InstalledAppBundle> installBundleFromBytes(
  1. Uint8List bytes
)

Install a bundle from .mcpb bytes (FR-INSTALL-001).

For hosts that fetched the archive themselves and have no path to hand — a browser shell installing a purchased bundle.

Implementation

Future<InstalledAppBundle> installBundleFromBytes(Uint8List bytes) async {
  _assertReady();
  final installed = await _bundleInstaller.installBytes(bytes);
  await _invalidateBundleCaches(installed.id);
  return installed;
}