MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPVenueProvider.h
Go to the documentation of this file.
1//
2// MPVenueProvider.h
3// MapsIndoors SDK for iOS
4//
5// Created by Daniel Nielsen on 1/14/14.
6// Copyright (c) 2014 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "MPDefines.h"
11
12
14@class MPBuilding;
15@class MPVenue;
16@class MPMapExtend;
17@class MPFloor;
18@class MPPoint;
19@class MPMapExtend;
20
21
22#pragma mark - typedefs
29typedef void(^mpVenueDetailsHandlerBlockType)(MPVenue* _Nullable venue, NSError* _Nullable error);
30
37typedef void(^mpVenueListHandlerBlockType)(MPVenueCollection* _Nullable venueCollection, NSError* _Nullable error);
38
45typedef void(^mpBuildingDetailsHandlerBlockType)(MPBuilding* _Nullable building, NSError* _Nullable error);
46
53typedef void(^mpBuildingListHandlerBlockType)(NSArray<MPBuilding*>* _Nullable buildings, NSError* _Nullable error);
54
63typedef void(^mpGeocodeHandlerBlockType)(MPVenue* _Nullable venue, MPBuilding* _Nullable building, MPFloor* _Nullable floor, NSError* _Nullable error);
64
65
66#pragma mark - MPVenueProviderDelegate
67
71@protocol MPVenueProviderDelegate <NSObject>
76@required
77- (void) onVenuesReady: (nonnull MPVenueCollection*)venueCollection;
82- (void) onBuildingWithinBoundsReady: (nonnull MPBuilding*)building;
87- (void) onBuildingDetailsReady: (nonnull MPBuilding*)building;
92- (void) onVenueDetailsReady: (nonnull MPVenue*)venue;
97- (void) onBuildingsReady: (nonnull NSArray<MPBuilding*>*)buildings;
98@end
99
100
101#pragma mark - MPVenueProvider
102
106@interface MPVenueProvider : NSObject
110@property (nonatomic, weak, nullable) id <MPVenueProviderDelegate> delegate;
111
116- (void)getVenues;
117
123- (void)getBuildingWithinBounds: (nonnull MPMapExtend*)mapExtend;
124
129- (void)getBuildings;
130
136- (void)getBuildingWithId: (nonnull NSString*)buildingId;
137
143- (void)getVenueWithId: (nonnull NSString*)venueId;
144
150- (void)getVenuesWithCompletion:(nullable mpVenueListHandlerBlockType)handler;
151
158- (void)getBuildingWithinBounds: (nonnull MPMapExtend*)mapExtend completionHandler:(nullable mpBuildingDetailsHandlerBlockType)handler;
164- (void)getBuildingsWithCompletion:(nullable mpBuildingListHandlerBlockType)handler;
165
172- (void)getBuildingWithId: (nonnull NSString*)buildingId completionHandler:(nullable mpBuildingDetailsHandlerBlockType)handler;
173
180- (void)getVenueWithId: (nonnull NSString*)venueId completionHandler:(nullable mpVenueDetailsHandlerBlockType)handler;
181
188- (void)getDataFromPoint: (nonnull MPPoint*)point completionHandler:(nullable mpGeocodeHandlerBlockType)completionHandler;
189
196+ (nullable NSDictionary*)getDataFromPoint: (nonnull MPPoint*)point;
197
205+ (BOOL) isOfflineDataAvailableForSolutionId:(nonnull NSString*)solutionId language:(nonnull NSString*)language;
206
207@end
void(^ mpVenueListHandlerBlockType)(MPVenueCollection *_Nullable venueCollection, NSError *_Nullable error)
Definition MPVenueProvider.h:37
void(^ mpBuildingListHandlerBlockType)(NSArray< MPBuilding * > *_Nullable buildings, NSError *_Nullable error)
Definition MPVenueProvider.h:53
void(^ mpBuildingDetailsHandlerBlockType)(MPBuilding *_Nullable building, NSError *_Nullable error)
Definition MPVenueProvider.h:45
void(^ mpVenueDetailsHandlerBlockType)(MPVenue *_Nullable venue, NSError *_Nullable error)
Definition MPVenueProvider.h:29
void(^ mpGeocodeHandlerBlockType)(MPVenue *_Nullable venue, MPBuilding *_Nullable building, MPFloor *_Nullable floor, NSError *_Nullable error)
Definition MPVenueProvider.h:63
@ building
Definition NSString+CustomFont.h:50
Definition MPBuilding.h:36
Definition MPFloor.h:17
Definition MPMapExtend.h:13
Definition MPPoint.h:23
Definition MPVenueCollection.h:22
Definition MPVenue.h:31
Definition MPVenueProvider.h:107
id< MPVenueProviderDelegate > delegate
Definition MPVenueProvider.h:110