registerBackgroundCallback static method

void registerBackgroundCallback(
  1. Future<void> callback(
    1. String widgetName
    )
)

Registers a top-level function to handle background events from widgets.

Implementation

static void registerBackgroundCallback(
  Future<void> Function(String) callback,
) {
  _ensureInitialized();
  _backgroundCallback = callback;
  // Map to HomeWidget background if needed in future
}