private void IntentRecievedByApp(object sender, IntentEventArgs e) { Toast toast = Toast.MakeText(this, String.Format("Subscriber App Recieved {0} : {1}", e.publisherApplication, e.publisherApplicationData), ToastLength.Short); toast.Show(); Console.WriteLine("Subscriber App Recieved {0} : {1}", e.publisherApplication, e.publisherApplicationData); }
protected virtual void OnIntentReceived(string pubApp, string pubAppData) { var intentEventArgs = new IntentEventArgs { publisherApplication = pubApp, publisherApplicationData = pubAppData }; IntentReceived?.Invoke(this, intentEventArgs); }
private void IntentReceived(object sender, IntentEventArgs e) { Console.WriteLine("Subscriber : Intent Recieved.....{0} - {1}", e.publisherApplication, e.publisherApplicationData); IntentReceivedBySub?.Invoke(this, e); }