Inherits from NSObject
Declared in IAResourceManager.h

Overview

IAResourceManager provides interface for downloading original bitmaps from IndoorAtlas services, and protocol for watching floor plan changes during positioning.

Properties

locationManager

Associated IALocationManager (read-only).

@property (nonatomic, readonly, nullable) IALocationManager *locationManager

Declared In

IAResourceManager.h

Class Methods

resourceManagerWithLocationManager:

Returns new IAResourceManager associated with IALocationManager.

+ (nullable IAResourceManager *)resourceManagerWithLocationManager:(nullable IALocationManager *)locationManager

Parameters

locationManager

Associated IALocationManager.

Return Value

IAResourceManager instance.

Declared In

IAResourceManager.h

Instance Methods

fetchFloorPlanImageWithId:andCompletion:

Fetch image file data for floor plan id

- (nullable id<IAFetchTask>)fetchFloorPlanImageWithId:(nullable NSString *)floorPlanId andCompletion:(nullable void ( ^ ) ( NSData *__nullable imageData , NSError *__nullable error ))completionBlock

Parameters

floorPlanId

Identifier of floor plan to fetch image file data for.

completionBlock

A block to be called when image download is completed.

  • data: Image file data. If an error occured, this parameter is nil.
  • error: If an error occured, this object describes the error. If the operation completed successfully, this value is nil.

Return Value

IAFetchTask instance for the request.

Declared In

IAResourceManager.h

fetchFloorPlanImageWithUrl:andCompletion:

Fetch image file data for floor plan url

- (nullable id<IAFetchTask>)fetchFloorPlanImageWithUrl:(nonnull NSURL *)floorPlanUrl andCompletion:(nullable void ( ^ ) ( NSData *__nullable imageData , NSError *__nullable error ))completionBlock

Parameters

floorPlanUrl

URL of floor plan to fetch image file data for.

completionBlock

A block to be called when image download is completed.

  • data: Image file data. If an error occured, this parameter is nil.
  • error: If an error occured, this object describes the error. If the operation completed successfully, this value is nil.

Return Value

IAFetchTask instance for the request.

Declared In

IAResourceManager.h

fetchFloorPlanWithId:andCompletion:

Fetch floor plan metadata for floor plan id.

- (nullable id<IAFetchTask>)fetchFloorPlanWithId:(nullable NSString *)floorPlanId andCompletion:(nullable void ( ^ ) ( IAFloorPlan *__nullable floorPlan , NSError *__nullable error ))completionBlock

Parameters

floorPlanId

Identifier of floor plan to fetch from server.

completionBlock

A block to be called when floor plan fetch is completed.

  • floorplan: A object representing fetched floor plan. If an error occured, this parameter is nil.
  • error: If an error occured, this object describes the error. If the operation completed successfully, this value is nil.

Return Value

IAFetchTask instance for the request.

Declared In

IAResourceManager.h