UIDevice+IdentifierAddition.h 875 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // UIDevice(Identifier).h
  3. // UIDeviceAddition
  4. //
  5. // Created by Georg Kitz on 20.08.11.
  6. // Copyright 2011 Aurora Apps. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Foundation/Foundation.h>
  10. @interface UIDevice (IdentifierAddition)
  11. /*
  12. * @method uniqueDeviceIdentifier
  13. * @description use this method when you need a unique identifier in one app.
  14. * It generates a hash from the MAC-address in combination with the bundle identifier
  15. * of your app.
  16. */
  17. - (NSString *) uniqueDeviceIdentifier;
  18. /*
  19. * @method uniqueGlobalDeviceIdentifier
  20. * @description use this method when you need a unique global identifier to track a device
  21. * with multiple apps. as example a advertising network will use this method to track the device
  22. * from different apps.
  23. * It generates a hash from the MAC-address only.
  24. */
  25. - (NSString *) uniqueGlobalDeviceIdentifier;
  26. @end