MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPSolutionProvider.h
Go to the documentation of this file.
1//
2// MPSolutionProvider.h
3// MapsIndoors for iOS
4//
5// Created by Martin Hansen on 7/23/15.
6// Copyright (c) 2015-2020 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "MPDefines.h"
11#import "MPSolution.h"
12
13
14@class MPUserRole;
15
16
17typedef void(^mpSolutionHandlerBlockType)(MPSolution* _Nullable solution, NSError* _Nullable error);
18typedef void(^mpUserRoleCompletion)( NSArray<MPUserRole*>* _Nullable userRoles, NSError* _Nullable error );
19
20
24@protocol MPSolutionProviderDelegate <NSObject>
25
30@required
31- (void) onSolutionsReady: (nonnull MPSolution*)solution;
32
33@end
34
38@interface MPSolutionProvider : NSObject
39
43@property (nonatomic, weak, nullable) id <MPSolutionProviderDelegate> delegate;
44
48- (void)getSolution;
52- (void)getSolutionWithCompletion: (nullable mpSolutionHandlerBlockType)completionHandler;
53
60+ (BOOL) isOfflineDataAvailableForSolutionId:(nonnull NSString*)solutionId;
61
67- (void) getUserRolesWithCompletion:(nonnull mpUserRoleCompletion)completionHandler;
68
69@end
void(^ mpSolutionHandlerBlockType)(MPSolution *_Nullable solution, NSError *_Nullable error)
Definition MPSolutionProvider.h:17
void(^ mpUserRoleCompletion)(NSArray< MPUserRole * > *_Nullable userRoles, NSError *_Nullable error)
Definition MPSolutionProvider.h:18
Definition MPSolution.h:18
Definition MPSolutionProvider.h:39
id< MPSolutionProviderDelegate > delegate
Definition MPSolutionProvider.h:43
Definition MPUserRole.h:14