Nessuna descrizione
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.

UniWebViewContentInsetAdjustmentBehavior.cs 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // UniWebViewContentInsetAdjustmentBehavior.cs
  3. // Created by Wang Wei(@onevcat) on 2019-09-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. /// <summary>
  17. /// Constants indicating how safe area insets are added to the adjusted content inset.
  18. /// This is only for iOS.
  19. /// </summary>
  20. public enum UniWebViewContentInsetAdjustmentBehavior
  21. {
  22. /// <summary>
  23. /// Automatically adjust the scroll view insets.
  24. /// </summary>
  25. Automatic = 0,
  26. /// <summary>
  27. /// Adjust the insets only in the scrollable directions.
  28. /// </summary>
  29. ScrollableAxes = 1,
  30. /// <summary>
  31. /// Do not adjust the scroll view insets.
  32. /// </summary>
  33. Never = 2,
  34. /// <summary>
  35. /// Always include the safe area insets in the content adjustment.
  36. /// </summary>
  37. Always = 3
  38. }