onOrganicClick property

void Function(Uri organicUrl)? onOrganicClick
final

Fires when an ORGANIC recommendation is clicked, with the publisher's own URL.

Organic recommendations point at the publisher's content, not an advertiser's, which is why native hands the URL back instead of opening a browser over the host app. Wire this up to keep the reader inside your own UI; leave it null and the article opens in an in-app browser view instead.

The click is reported to the server either way, and when this fires follows each native. On Android the report starts first but is not awaited, so it may still be in flight when this runs. On iOS this fires, and clickedOrganic is emitted, only once the report has succeeded; if it fails, neither happens and nothing opens (SFWidget.swift:575-614).

Implementation

final void Function(Uri organicUrl)? onOrganicClick;