Exemplo n.º 1
0
        private async Task ShareToWeixinAsync(string name)
        {
            shareType = name == "WeixinShare" ?
                        ShareType.WechatSession :
                        ShareType.WechatTimeLine;
            var doc = new HtmlDocument();

            doc.LoadHtml(nativeString);
            var bytes = await SDKHelpers.ReadResFromImageAsync(thumb);

            await SDKHelpers.SendWechatShareToUserChoiceRequestAsync(
                url : currentUri.ToString(),
                title : title,
                thumb : bytes,
                desc : description,
                toTimeLine : shareType);
        }