MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPMessageProvider.h
Go to the documentation of this file.
1//
2// MPMessagesProvider.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#import "MPMessageDataset.h"
12
13
14typedef void(^mpMessageDetailsHandlerBlockType)(MPMessage* _Nullable message, NSError* _Nullable error);
15typedef void(^mpMessageListHandlerBlockType)(NSArray<MPMessage>* _Nullable messages, NSError* _Nullable error);
16
17
21@protocol MPMessageProviderDelegate <NSObject>
26@required
27- (void) onMessagesReady: (nonnull NSArray<MPMessage>*)messages;
28
29@required
30- (void) onMessageDetailsReady: (nonnull MPMessage*)message;
31@end
35@protocol MPMessagesProvider <NSObject>
36
37@property (nonatomic, weak, nullable) id <MPMessageProviderDelegate> delegate;
38
43- (void)getMessagesWithCompletion: (nullable mpMessageListHandlerBlockType) handler;
49- (void)getMessageWithId:(nonnull NSString*)messageId completionHandler: (nullable mpMessageDetailsHandlerBlockType) handler;
50@end
51
52
57
58@end
void(^ mpMessageDetailsHandlerBlockType)(MPMessage *_Nullable message, NSError *_Nullable error)
Definition MPMessageProvider.h:14
void(^ mpMessageListHandlerBlockType)(NSArray< MPMessage > *_Nullable messages, NSError *_Nullable error)
Definition MPMessageProvider.h:15
Definition MPMessage.h:13
Definition MPMessageProvider.h:56
Definition MPMessageProvider.h:35
id< MPMessageProviderDelegate > delegate
Definition MPMessageProvider.h:37