PPOTDevice.h 651 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // PPOTDevice.h
  3. // Copyright © 2009 PayPal, Inc. All rights reserved.
  4. //
  5. #import <UIKit/UIKit.h>
  6. /**
  7. Contains information about the current device
  8. */
  9. @interface PPOTDevice : NSObject
  10. /**
  11. @return the hardware platform used
  12. */
  13. + (nonnull NSString *)hardwarePlatform;
  14. /**
  15. @return the name of the device
  16. */
  17. + (nonnull NSString *)deviceName;
  18. /**
  19. @return the device's locale
  20. */
  21. + (nonnull NSString *)complicatedDeviceLocale;
  22. /**
  23. Generates a device identifier and stores it.
  24. @return a generated device identifier
  25. */
  26. + (nonnull NSString *)appropriateIdentifier;
  27. /**
  28. Clears any stored device identifier.
  29. */
  30. + (void)clearIdentifier;
  31. @end