feat(ios): Add App Intents support for Conduit interactions

This commit is contained in:
cogwheel0
2025-11-25 00:53:13 +05:30
parent 000b25e515
commit 6d56f5d160
8 changed files with 175 additions and 4 deletions

View File

@@ -362,6 +362,20 @@ class AppIntentCoordinator extends _$AppIntentCoordinator {
);
}
Future<void> openChatFromExternal({
String? prompt,
bool focusComposer = false,
bool resetChat = false,
}) {
return _prepareChatWithOptions(
prompt: prompt,
focusComposer: focusComposer,
resetChat: resetChat,
);
}
Future<void> startVoiceCallFromExternal() => _startVoiceCall();
Future<void> _prepareChatWithOptions({
String? prompt,
bool focusComposer = false,
@@ -412,7 +426,7 @@ class AppIntentCoordinator extends _$AppIntentCoordinator {
await navigator.push(
MaterialPageRoute(
builder: (_) => const VoiceCallPage(),
builder: (_) => const VoiceCallPage(startNewConversation: true),
fullscreenDialog: true,
),
);