web-crawler

Can we extract image from LPLinkView in LinkPresentation framework?

假装没事ソ 提交于 2020-08-24 11:11:14
问题 I want to present a rich link in my app and also send those data to my server. I need to access the image inside the view of LPLinkView. how can I access the parameters inside it? (like: image, description, title, icon, and ext...) 回答1: Unfortunately, you can't access any internal properties of an LPLinkView , but you can easily create your own view. The LPLinkMetadata object has everything you need, you just need to know how to extract the images from its iconProvider and imageProvider ,

Can we extract image from LPLinkView in LinkPresentation framework?

ⅰ亾dé卋堺 提交于 2020-08-24 11:06:01
问题 I want to present a rich link in my app and also send those data to my server. I need to access the image inside the view of LPLinkView. how can I access the parameters inside it? (like: image, description, title, icon, and ext...) 回答1: Unfortunately, you can't access any internal properties of an LPLinkView , but you can easily create your own view. The LPLinkMetadata object has everything you need, you just need to know how to extract the images from its iconProvider and imageProvider ,