public override void onReceive(Context context, Intent intent) { /* Big picture downloaded */ if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.Equals(intent.Action)) { /* Get content by download id */ long downloadId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0); EngagementReachAgent reachAgent = EngagementReachAgent.getInstance(context); EngagementReachInteractiveContent content = reachAgent.getContentByDownloadId(downloadId); /* Delegate to agent if content found */ if (content != null) { reachAgent.onDownloadComplete(content); } } }
public override void onReceive(Context context, Intent intent) { /* Big picture downloaded */ if (DownloadManager.ACTION_DOWNLOAD_COMPLETE.Equals(intent.Action)) { /* Get content by download id */ long downloadId = intent.getLongExtra(DownloadManager.EXTRA_DOWNLOAD_ID, 0); EngagementReachAgent reachAgent = EngagementReachAgent.getInstance(context); EngagementReachInteractiveContent content = reachAgent.getContentByDownloadId(downloadId); /* Delegate to agent if content found */ if (content != null) { reachAgent.onDownloadComplete(content); } } }