MPMessagesProvider
@interface MPMessagesProvider : NSObject <MPMessagesProvider>
Messages provider that defines a delegate and a method to initiate fetching of Messages from the provider.
-
Messages provider delegate.
Declaration
Objective-C
@property (readwrite, atomic) id<MPMessageProviderDelegate> delegate;
Swift
weak var delegate: MPMessageProviderDelegate! { get set }
-
Undocumented
Declaration
Objective-C
@interface MPMessagesProvider : NSObject <MPMessagesProvider>
-
Method to initiate fetching of all Messages from the provider in a specific translation. - parameter: solutionId The MapsIndoors solution ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages.
Declaration
Objective-C
- (void)getMessagesAsync:(NSString *)solutionId language:(NSString *)language completionHandler:(mpMessageListHandlerBlockType)handler;
Swift
func getMessagesAsync(_ solutionId: String!, language: String!, completionHandler handler: mpMessageListHandlerBlockType!)
Parameters
solutionId
The MapsIndoors solution ID.
language
The language code. Must be one of the MapsIndoors solutions supported content languages.
-
Method to query a unique Message from the provider based on an id. - parameter: solutionId The MapsIndoors solution ID. - parameter: MessageId The MapsIndoors Message ID. - parameter: language The language code. Must be one of the MapsIndoors solutions supported content languages. - parameter: handler The handler callback block. Contains the MPMessage object (can be nil) and an NSError object (can be nil).
Declaration
Objective-C
- (void)getMessageDetailsAsync:(NSString *)solutionId withId:(NSString *)messageId language:(NSString *)language completionHandler:(mpMessageDetailsHandlerBlockType)handler;
Swift
func getMessageDetailsAsync(_ solutionId: String!, withId messageId: String!, language: String!, completionHandler handler: mpMessageDetailsHandlerBlockType!)
Parameters
solutionId
The MapsIndoors solution ID.
MessageId
The MapsIndoors Message ID.
language
The language code. Must be one of the MapsIndoors solutions supported content languages.
handler
The handler callback block. Contains the MPMessage object (can be nil) and an NSError object (can be nil).