API - Short-form
ShopLiveShortform.close()
실행중인 Short-form 을 닫습니다.
ShopLiveShortform.close()
ShopLiveShortform.BridgeInterface.connect(_ webview: WKWebView)
하이브리드 환경에서 Web과 SDK를 연결합니다.
ShopLiveShortform.BridgeInterface.connect(webview)
ShopLiveShortform.ShortsReceiveInterface.setHandler(_ handler: ShopLiveShortformReceiveHandlerDelegate?)
하이브리드 환경에서 Web과 SDK에서 메세지를 주고 받습니다.
ShopLiveShortform.ShortsReceiveInterface.setHandler(self)
extension CustomerViewController: ShopLiveShortformReceiveHandlerDelegate {
func handleShare(shareUrl: String) {
// Do something
}
func onError(error: Error) {
// Do something
}
func onEvent(command: String, payload: String?) {
// Do something
}
}
Updated 13 days ago