title: How to implement IPlatformParameters in PageRenderer for Android in Xamarin.Forms
body: <p>How to implement a PageRenderer for the page:</p>
  
  <p>I have a MainPage.xaml and its code behind contain : IPlatformParamters</p>
  
  <pre><code>public class MainPage : ContentPage
  {
   public IPlatformParameters platformParameters { get; set; }
  
   ...... other code....
  
  }
  </code></pre>
  
  <p>Implementing a Custom PageRenderer. </p>
  
  <p>below class with name: MyPageRenderer is in Project.IOS</p>
  
  <p>How to convert this iOS for Android?</p>
  
  <pre><code>[assembly: ExportRenderer(typeof(MainPage), typeof(MyPageRenderer))]
  
     namespace ProjectX.iOS
      {
          class MyPageRenderer: PageRenderer
          {
              MainPage page;
  
               protected override void OnElementChanged (VisualElementChangedEventArgs e)
               {
                   base.OnElementChanged (e);
                   page = e.NewElement as MainPage;
               }
  
              public override void ViewDidLoad ()
               {
                   base.ViewDidLoad ();
                   page.platformParameters = new PlatformParameters(this);
               }
  
         }
    }
  </code></pre>