OMCLocation Class Reference

Inherits from OMCServiceProxy : NSObject
Declared in OMCLocation.h

Overview

Library interface to the Oracle Mobile Cloud Location service.

The Location service provides support for associating places, assets, devices and beacons.

– assetWithID:completionHandler:

Asynchronously retrieves the asset with the specified ID from the Location service and passes it to the specified completion handler.

- (void)assetWithID:(NSNumber *)id_ completionHandler:(OMCLocationAssetCompletionBlock)completionHandler

Parameters

id_

The ID of the asset to retrieve from the Location service.

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

OMCLocation.h

– buildAssetQuery

Builds and returns a new asset query that can be configured to retrieve a set of assets from the Location service.

- (OMCLocationAssetQuery *)buildAssetQuery

Declared In

OMCLocation.h

– deviceWithID:completionHandler:

Asynchronously retrieves the device with the specified ID from the Location service and passes it to the specified completion handler.

- (void)deviceWithID:(NSNumber *)id_ completionHandler:(OMCLocationDeviceCompletionBlock)completionHandler

Parameters

id_

The ID of the device to retrieve from the Location service.

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

OMCLocation.h

– devicesWithBeacon:completionHandler:

Asynchronously retrieves the devices with the specified beacon from the Location service and passes them to the specified completion handler. Typically there will be only a single device associated with the beacon.

- (void)devicesWithBeacon:(OMCLocationBeacon *)beacon completionHandler:(OMCLocationDeviceQueryCompletionBlock)completionHandler

Parameters

beacon

The beacon of the devices to retrieve from the Location service.

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

OMCLocation.h

– buildDeviceQuery

Builds and returns a new device query that can be configured to retrieve a set of devices from the Location service.

- (OMCLocationDeviceQuery *)buildDeviceQuery

Declared In

OMCLocation.h

– placeWithID:completionHandler:

Asynchronously retrieves the place with the specified ID from the Location service and passes it to the specified completion handler.

- (void)placeWithID:(NSNumber *)id_ completionHandler:(OMCLocationPlaceCompletionBlock)completionHandler

Parameters

id_

The ID of the place to retrieve from the Location service.

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

OMCLocation.h

– placeClosestToPoint:completionHandler:

Asynchronously retrieves the place closest to the specified geo point from the Location service and passes it to the specified completion handler.

- (void)placeClosestToPoint:(OMCLocationGeoPoint *)point completionHandler:(OMCLocationPlaceQueryCompletionBlock)completionHandler

Parameters

point

The geo point to search out from.

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

OMCLocation.h

– placesInGeoFence:completionHandler:

Asynchronously retrieves the places in the specified geo fence from the Location service and passes them to the specified completion handler.

- (void)placesInGeoFence:(OMCLocationGeoCircle *)geoFence completionHandler:(OMCLocationPlaceQueryCompletionBlock)completionHandler

Parameters

geoFence

The geo fence to search.

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

OMCLocation.h

– buildPlaceQuery

Builds and returns a new place query that can be configured to retrieve a set of places from the Location service.

- (OMCLocationPlaceQuery *)buildPlaceQuery

Declared In

OMCLocation.h