showChatHead method

  1. @override
Future<void> showChatHead(
  1. ChatHeadConfig config
)
override

Shows the chathead with the given config.

Creates a foreground service (Android) or a UIWindow overlay (iOS), launches a separate Flutter engine with the configured entry point, and renders the chathead bubble.

Implementation

@override
Future<void> showChatHead(ChatHeadConfig config) async {
  showChatHeadCalled = true;
  lastConfig = config;
  active = true;
}