Example #1
0
        async partial void YouTubeLinkButton_TouchUpInside(UIButton sender)
        {
            AnalyticsHelpers.TrackEvent(AnalyticsConstants.YouTubeButtonTapped);

            var canOpenYouTubeApp = UIApplication.SharedApplication.CanOpenUrl(GetAppUrl(AppType.YouTube));

            if (canOpenYouTubeApp)
            {
                OpenLinkInApp(AppType.YouTube);
            }
            else
            {
                await OpenLinkInSFSafariViewController(GetWebUrl(AppType.YouTube));
            }
        }