void ResetView() { if (ad != null) { ad.RemoveFromSuperview(); } ad = new AdJitsuView(adContainer.Bounds); ad.WillOpen += delegate { status.Text = "Status: Opening"; }; ad.WillClose += delegate { status.Text = "Status: will close"; }; ad.FinishedLoadingScene += delegate { status.Text = "Finished Loading scene"; }; ad.FailedLoadingScene += delegate { status.Text = "Failed to load scene"; }; adContainer.AddSubview(ad); Reload(); }
void ResetView() { if (ad != null) ad.RemoveFromSuperview (); ad = new AdJitsuView (adContainer.Bounds); ad.WillOpen += delegate { status.Text = "Status: Opening"; }; ad.WillClose += delegate { status.Text = "Status: will close"; }; ad.FinishedLoadingScene += delegate { status.Text = "Finished Loading scene"; }; ad.FailedLoadingScene += delegate { status.Text = "Failed to load scene"; }; adContainer.AddSubview (ad); Reload (); }