IQApp.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // IQApp.h
  3. // ConnectIQ
  4. //
  5. // Copyright (c) 2014 Garmin. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "IQDevice.h"
  9. #import "IQAppStatus.h"
  10. /// @brief Represents an instance of a ConnectIQ app that is installed on a
  11. /// Garmin device.
  12. @interface IQApp : NSObject <NSSecureCoding>
  13. /// @brief The unique identifier for this app.
  14. @property (nonatomic, readonly) NSUUID *uuid;
  15. /// @brief The unique identifier for this app in the store.
  16. @property (nonatomic, readonly) NSUUID *storeUuid;
  17. /// @brief The device that this app is installed on.
  18. @property (nonatomic, readonly) IQDevice *device;
  19. /// @brief Creates a new app instance.
  20. ///
  21. /// @param uuid The UUID of the app to create.
  22. /// @param storeUuid The store UUID of the app to create.
  23. /// @param device The device the app to create is installed on.
  24. ///
  25. /// @return A new IQApp instance with the appropriate values set.
  26. + (IQApp *)appWithUUID:(NSUUID *)uuid storeUuid:(NSUUID *)storeUuid device:(IQDevice *)device;
  27. @end