onResolvedData property
Stream<ResolvedLinkData> ?
onResolvedData
Fetches an object with the following parameters: deepLink, clickTimeStamp, socialTitle, socialDescription, socialImageUrl, campaignName, campaignMedium, and campaignSource.
This method returns a Stream that emits a ResolvedLinkData
object,
which contains the App Linking data to be processed. The App Linking data
includes the deep link, the click time stamp, the social card information,
and the campaign parameters of the app link.
Example usage:
StreamSubscription<ResolvedLinkData> _streamSubscription;
final AGCAppLinking agcAppLinking = new AGCAppLinking();
initState() {
super.initState();
_streamSubscription = agcAppLinking.onResolvedData.listen((event) {
_showDialog(context, event.toString());
});
}
@return A Stream that emits a ResolvedLinkData
object.
Implementation
Stream<ResolvedLinkData>? get onResolvedData {
if (_onResolvedLinkData == null) {
_onResolvedLinkData = _eventChannel
.receiveBroadcastStream()
.map((event) => ResolvedLinkData.fromMap(event));
}
return _onResolvedLinkData;
}