registerInteractivityCallback static method

Future<bool?> registerInteractivityCallback(
  1. FutureOr<void> callback(
    1. Uri?
    )
)

Register a callback that gets called when clicked on a specific View in a HomeWidget This enables having Interactive Widgets that can call Dart Code More Info on setting this up in the README

Implementation

static Future<bool?> registerInteractivityCallback(
  FutureOr<void> Function(Uri?) callback,
) {
  final args = <dynamic>[
    ui.PluginUtilities.getCallbackHandle(callbackDispatcher)?.toRawHandle(),
    ui.PluginUtilities.getCallbackHandle(callback)?.toRawHandle(),
  ];
  return _channel.invokeMethod('registerBackgroundCallback', args);
}