title: XAMARIN C# Android : Permissions : API 23 Methods And Constants Implemented or Not?
body: <p>I need use WindowManager with WindowManagerTypes.SystemOverlay argument</p>
  
  <p>This permission enabled on my project</p>
  
  <p>but it's parameter for API &lt; 23</p>
  
  <p>I developed with API 23 (Android 6.0)</p>
  
  <p>I need enable parameter "Draw over other apps" in Settings => Apps => Application Manager Settings of my Android phone of test</p>
  
  <p>I can't find in Xamarin : Settings.ActionManageOverlayPermission neither Settings.CanDrawOverlays function, It' IMPLEMENTED OR NOT ?</p>
  
  <p>This element was added from Xamarin.Android Version 5.1.99 (see link below) :</p>
  
  <p><a href="https://developer.xamarin.com/releases/android/xamarin.android_5/xamarin.android_5.1.99/level_23_diff/mono.android.dll/" rel="nofollow noreferrer">https://developer.xamarin.com/releases/android/xamarin.android_5/xamarin.android_5.1.99/level_23_diff/mono.android.dll/</a></p>
  
  <p>But I can't use elements.</p>
  
  <p>I use a java code to explain problem of implementation (see below), I want do this code but in C# of course.</p>
  
  <p>JAVA CODE</p>
  
  <pre><code>public static int ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE= 5469;
  
  public void testPermission() {
      if (!Settings.canDrawOverlays(this)) {
          Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION,
                  Uri.parse("package:" + getPackageName()));
          startActivityForResult(intent, ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE);
      }
  }
  Result :
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (requestCode == ACTION_MANAGE_OVERLAY_PERMISSION_REQUEST_CODE) {
          if (Settings.canDrawOverlays(this)) {
              // You have permission
          }
      }
  }
  </code></pre>