getInstallReferrer property
Future<ReferrerDetails?>
get
getInstallReferrer
Implementation
Future<ReferrerDetails?> get getInstallReferrer async {
dynamic referrer = await Ads.instance.channelReferrer.invokeMethod('getInstallReferrer', {
'id': id,
'callMode': describeEnum(_callMode),
});
if (referrer != null) {
Bundle bundle = new Bundle();
bundle.putString(
ReferrerDetails.keyInstallReferrer, referrer[ReferrerDetails.keyInstallReferrer] ?? null);
bundle.putInt(ReferrerDetails.keyReferrerClickTimeStamp,
referrer[ReferrerDetails.keyReferrerClickTimeStamp] ?? null);
bundle.putInt(ReferrerDetails.keyInstallBeginTimeStamp,
referrer[ReferrerDetails.keyInstallBeginTimeStamp] ?? null);
_referrerDetails = ReferrerDetails(bundle);
}
return _referrerDetails;
}