7단계 방송링크 공유하기

    7단계 방송링크 공유하기


    기사 요약

    Shoplive의 공유하기 API를 통해서 방송의 URI Scheme 또는 URL을 손쉽게 공유할 수 있습니다.


    공유 링크 형식 지정

    URI Scheme

    let scheme = "{your host}://{your host}?ak=xxx&ck=yyy"
    ShopLive.setShareScheme(with: scheme, custom: nil)
    

    URL

    let url = "https://www.share_link.com/?ak=xxx&ck=yyy"
    ShopLive.setShareScheme(with: "https://www.share_link.com/?ak=xxx&ck=yyy", custom: nil)
    


    기본 시스템 공유 UI 사용

    ShopLive.setShareScheme(scheme, custom: nil)


    커스텀 시스템 공유 UI 사용

    ShopLive.setShareScheme(scheme, custom: {
        let customShareVC = CustomShareViewController()
        customShareVC.modalPresentationStyle = .overFullScreen
    
        // 커스텀 시스템 공유 UI ViewController를 생성하여, Shoplive Player 화면(viewController)에 나타냅니다.
        ShopLive.viewController?.present(customShareVC, animated: false, completion: nil)
    })
    

    재생 중인 방송의 링크를 주변 또는 SNS에 전달하여, 링크 클릭만으로 앱 설치 또는 방송 시청을 유도할 수 있습니다. (단, 앱에서 별도 deeplink를 처리해야 합니다.)