createDefaultAdapter method

NutrientPlatformAdapter createDefaultAdapter()

Creates the SDK's built-in default adapter for this platform.

This is the no-customization adapter — it gives you the full default viewer (document loading, the built-in toolbar, annotations, the typed event stream, …). Nutrient.initialize calls it to supply an adapter when the caller didn't pass one, so registering an adapter is only necessary when you want to customize the viewer.

Platform packages override this. The base implementation throws so that any platform without a default surfaces the gap instead of failing silently — callers are expected to handle UnimplementedError.

Implementation

NutrientPlatformAdapter createDefaultAdapter() => throw UnimplementedError(
      'createDefaultAdapter() has not been implemented for this platform.',
    );