OMCLocationObject Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | OMCLocationObject.h |
Overview
A location object is one of the major components of the Location service model. It can represent an asset, device, or place.
location
The location object’s location service proxy.
@property (readonly) OMCLocation *locationDeclared In
OMCLocationObject.h
properties
The location object’s raw properties (corresponding to the JSON payload).
@property (readonly) NSDictionary<NSString*id> *propertiesDeclared In
OMCLocationObject.h
id_
The location object’s ID, a unique number generated by the Location service.
@property (readonly) NSNumber *id_Declared In
OMCLocationObject.h
description_
The location object’s description.
@property (readonly, nullable) NSString *description_Declared In
OMCLocationObject.h
createdOn
The date the location object was created.
@property (readonly, nullable) NSDate *createdOnDeclared In
OMCLocationObject.h
modifiedOn
The date the location object was last modified.
@property (readonly, nullable) NSDate *modifiedOnDeclared In
OMCLocationObject.h
attributes
A dictionary of user-defined string attributes.
@property (readonly) NSDictionary<NSString*NSString*> *attributesDeclared In
OMCLocationObject.h
– attributeForKey:
Returns the value of the specified attribute.
- (nullable NSString *)attributeForKey:(NSString *)keyParameters
key |
The attribute’s user-defined key. |
|---|
Declared In
OMCLocationObject.h
– refreshWithCompletionHandler:
Asynchronously refreshes the object’s state from the Location service and invokes the specified completion handler when complete.
- (void)refreshWithCompletionHandler:(OMCErrorCompletionBlock)completionHandlerParameters
completionHandler |
The block invoked when the request to the Location service is finished. The completion block will be invoked on the main dispatch queue. |
|---|
Declared In
OMCLocationObject.h