You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.7 KiB

  1. //
  2. // UniWebViewMediaCapturePermissionDecision.cs
  3. // Created by Wang Wei(@onevcat) on 2024-02-20.
  4. //
  5. // This file is a part of UniWebView Project (https://uniwebview.com)
  6. // By purchasing the asset, you are allowed to use this code in as many as projects
  7. // you want, only if you publish the final products under the name of the same account
  8. // used for the purchase.
  9. //
  10. // This asset and all corresponding files (such as source code) are provided on an
  11. // “as is” basis, without warranty of any kind, express of implied, including but not
  12. // limited to the warranties of merchantability, fitness for a particular purpose, and
  13. // noninfringement. In no event shall the authors or copyright holders be liable for any
  14. // claim, damages or other liability, whether in action of contract, tort or otherwise,
  15. // arising from, out of or in connection with the software or the use of other dealing in the software.
  16. //
  17. /// <summary>
  18. /// Represents the decision of media capture permission request.
  19. ///
  20. /// Use value in this enum to guide how UniWebView should handle the media capture permission request.
  21. /// </summary>
  22. public enum UniWebViewMediaCapturePermissionDecision {
  23. /// <summary>
  24. /// Display a prompt to ask user for the permission.
  25. ///
  26. /// The prompt alert shows the origin of the request and the resources requested. It asks user to grant or deny the
  27. /// permission.
  28. /// </summary>
  29. Prompt,
  30. /// <summary>
  31. /// Grant the permission request without asking user.
  32. /// </summary>
  33. Grant,
  34. /// <summary>
  35. /// Deny the permission request. The web page will receive an error and it knows the request resources are not
  36. /// allowed to use.
  37. /// </summary>
  38. Deny
  39. }