IAndroidPermissionsCheck.cs 1.6 KB

1234567891011121314151617181920212223242526
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal
  10. {
  11. /// <summary>
  12. /// Interface for checking Android permission. The interface is used for MOCK unity test. </summary>
  13. public interface IAndroidPermissionsCheck
  14. {
  15. /// <summary> Requests an Android permission from the user. </summary>
  16. /// <param name="permissionName"> The permission to be requested (e.g. android.permission.CAMERA).</param>
  17. /// <returns>
  18. /// An asynchronous task that completes when the user has accepted or rejected the requested
  19. /// permission and yields a <see cref="AndroidPermissionsRequestResult"/> that summarizes the
  20. /// result. If this method is called when another permissions request is pending, <c>null</c>
  21. /// will be returned instead. </returns>
  22. AsyncTask<AndroidPermissionsRequestResult> RequestAndroidPermission(
  23. string permissionName);
  24. }
  25. }