ARSiteImage Class Reference
Inherits from | NSObject |
Conforms to | GridCellViewDataProvider |
Declared in | ARSiteImage.h ARSiteImage.m |
Tasks
-
– initWithDictionary:
Creates an ARSiteImage from a dictionary of data returned from the AR server.
-
– initWithSite:andImage:
Creates an ARSiteImage and sends it to the server in the current site.
-
– identifier
The identifier of the ARSiteImage
-
– urlForSize:
ARSiteImages can be displayed at a variety of sizes. This method returns an URL that can be used to load the ARSiteImage at a particular size. Applications should cache site images themselves.
Instance Methods
identifier
The identifier of the ARSiteImage
- (NSString *)identifier
Return Value
The identifier of the ARSiteImage
Declared In
ARSiteImage.h
initWithDictionary:
Creates an ARSiteImage from a dictionary of data returned from the AR server.
- (id)initWithDictionary:(NSDictionary *)dict
Parameters
- dict
A dictionary of JSON key-value pairs that was returned from the server.
Return Value
A newly initialized ARSiteImage instance
Discussion
Creates an ARSiteImage from a dictionary of data returned from the AR server.
Declared In
ARSiteImage.h
initWithSite:andImage:
Creates an ARSiteImage and sends it to the server in the current site.
- (id)initWithSite:(ARSite *)site andImage:(UIImage *)img
Parameters
- site
A site to add the image to.
- img
An image captured at the site.
Return Value
A newly initialized ARSiteImage instance
Discussion
Creates an ARSiteImage and sends it to the server in the current site.
Declared In
ARSiteImage.h
urlForSize:
ARSiteImages can be displayed at a variety of sizes. This method returns an URL that can be used to load the ARSiteImage at a particular size. Applications should cache site images themselves.
- (NSURL *)urlForSize:(int)size
Parameters
- size
The desired maxmimum dimension of the photo.
Return Value
An NSURL that can be used to request the image of this size.
Discussion
ARSiteImages can be displayed at a variety of sizes. This method returns an URL that can be used to load the ARSiteImage at a particular size. Applications should cache site images themselves.
Declared In
ARSiteImage.h