Skip to content

Commit

Permalink
Added callback notification for close and minimse
Browse files Browse the repository at this point in the history
  • Loading branch information
KartheekPa-Kore committed Oct 3, 2024
1 parent 1aa5087 commit 5ede58f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/KoreBotSDK/AppKit/Common/BotConnect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ open class BotConnect: NSObject {

botViewController.closeAndMinimizeEvent = { [weak self] (Dic) in
if let dic = Dic {
let jsonString = Utilities.stringFromJSONObject(object: dic)
NotificationCenter.default.post(name: Notification.Name("ChatbotCallBackNotification"), object: jsonString)
if self?.closeOrMinimizeEvent != nil{
self?.closeOrMinimizeEvent(dic)
}
Expand Down

0 comments on commit 5ede58f

Please sign in to comment.