OMCLocationDeviceQuery Class Reference

Inherits from OMCLocationObjectQuery : NSObject
Declared in OMCLocationDeviceQuery.h

Overview

A device query can be configured to search for devices.

  protocol

The query’s results will be filtered on a match of this value with the device’s beacon protocol.

@property (nonatomic) OMCLocationDeviceQueryProtocolType protocol

Discussion

The default value is OMCLocationDeviceQueryProtocolTypeNone.

Declared In

OMCLocationDeviceQuery.h

  assetID

The query will search for the device associated with this asset ID.

@property (nonatomic, nullable) NSNumber *assetID

Declared In

OMCLocationDeviceQuery.h

– setAsset:

The query will search for the device associated with the specified asset.

- (void)setAsset:(nullable OMCLocationAsset *)asset

Parameters

asset

The asset associated with the device the query will search for.

Declared In

OMCLocationDeviceQuery.h

  beacon

The query will search for the device for this beacon.

@property (nonatomic, nullable) OMCLocationBeacon *beacon

Declared In

OMCLocationDeviceQuery.h

  orderByAttribute

The attribute by which the query results will be sorted when returned. The sort order (ascending or descending) is determined by the order-by order.

@property (nonatomic) OMCLocationDeviceQueryOrderByAttributeType orderByAttribute

Discussion

The default value is OMCLocationDeviceQueryOrderByAttributeTypeNone.

Declared In

OMCLocationDeviceQuery.h

– executeWithCompletionHandler:

Asynchronously executes the query, invoking the specified completion handler block when finished.

- (void)executeWithCompletionHandler:(void ( ^ ) ( OMCLocationObjectQueryResult<OMCLocationDeviceQuery*,OMCLocationDevice*> *_Nullable result , NSError *_Nullable error ))completionHandler

Parameters

completionHandler

The block to be invoked when the query has finished executing. The completion block will be invoked on the main dispatch queue.

Declared In

OMCLocationDeviceQuery.h