startInAppCustomActionHandler method
Implementation
@override
Future<void Function()> startInAppCustomActionHandler(
InAppCustomActionHandler handler,
) async {
// 핸들러 등록
_inAppCustomActionHandlers.add(handler);
debugPrint(
'InAppCustomActionHandler has been registered. Total handlers: ${_inAppCustomActionHandlers.length}',
);
// 네이티브 메서드 호출
await methodChannel.invokeMethod<void>('startInAppCustomActionHandler');
// unsubscribe 함수 반환
return () {
_inAppCustomActionHandlers.remove(handler);
debugPrint(
'InAppCustomActionHandler has been removed. Total handlers: ${_inAppCustomActionHandlers.length}',
);
};
}