saveBlockScreenCallbackHandle method

  1. @override
Future<void> saveBlockScreenCallbackHandle(
  1. int rawHandle
)
override

Saves the callback handle for the block screen Dart entrypoint.

The rawHandle is obtained via PluginUtilities.getCallbackHandle() and is persisted on the native side so the background service can boot a FlutterEngine with the correct entrypoint when a blocked app is detected.

Implementation

@override
Future<void> saveBlockScreenCallbackHandle(int rawHandle) async {
  await methodChannel.invokeMethod('saveBlockScreenCallbackHandle', {
    'rawHandle': rawHandle,
  });
}