Bug 36198 - ShareLinkContent.Builder.SetContentUrl() returns Object instead of ShareLinkContent.Builder
Summary: ShareLinkContent.Builder.SetContentUrl() returns Object instead of ShareLinkC...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Staging (addons.xamstage.com)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Jon Dick
URL:
Depends on:
Blocks:
 
Reported: 2015-11-24 04:50 UTC by Dimitar Dobrev
Modified: 2017-09-28 14:35 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description Dimitar Dobrev 2015-11-24 04:50:40 UTC
See https://developers.facebook.com/docs/sharing/android#links - the correct return type is ShareLinkContent.Builder.
This may be related to or a duplicate of https://bugzilla.xamarin.com/show_bug.cgi?id=24753.
Comment 1 Jon Dick 2016-05-10 13:10:50 UTC
As a workaround, please use JavaCast (eg: `SetContentUrl (..).JavaCast<ShareLinkContent.Builder> ()`)

This one's a little bit more tricky to fix right now as ShareLinkContent.Builder subclasses ShareContent.Builder which is where the actual SetContentUrl method implementation lives.

Even if we fix SetContentUrl to return a ShareContent.Builder, that still won't get you the ShareLinkContent.Builder back you are hoping for.

We will need to look at some options for addressing this, or wait until we get proper support for binding generic types in the future.