prepareForAction method

  1. @override
Future<List<String>> prepareForAction(
  1. List<String> allowlistBundleIds, [
  2. int? displayId
])
override

Implementation

@override
Future<List<String>> prepareForAction(
  List<String> allowlistBundleIds, [
  int? displayId,
]) async {
  if (!_getHideBeforeActionEnabled()) return [];

  try {
    // In a real implementation, this would call the Swift native module
    // to hide non-allowlisted apps and activate the target
    _logDebug('prepareForAction: hiding non-allowlisted apps');
    return [];
  } catch (e) {
    _logDebug('prepareForAction failed; continuing: $e');
    return [];
  }
}