#include <MPAppDataProvider.h>
The app data provider acts as a service for the metadata (MPAppData) of a MapsIndoors app solution.
◆ mpAppDataHandlerBlockType
- (typedef void(^ mpAppDataHandlerBlockType) (MPAppData *_Nullable appData, NSError *_Nullable error)) |
|
protected |
Callback block for getting app data or handling error in doing so.
- Parameters
-
appData | App metadata object. Will be nil if an error occurred |
error | Error object. Will be nil if fetching was complete |
◆ getAppData
Get app metadata. Assign a delegate object to this instance in order to handle the data fetch.
◆ getAppDataWithCompletion:
Get app metadata and handle the data with a callback block
- Parameters
-
handler | Data fetch and error callback handler block |
◆ isOfflineDataAvailableForSolutionId:language:
+ (BOOL) isOfflineDataAvailableForSolutionId: |
|
(NSString *) | solutionId |
language: |
|
(NSString *) | language |
Determine if cached or preloaded data is available for the given solutionId.
- Parameters
-
solutionId | SolutionId to check for offline data availability. |
language | Language to check for offline data availability. |
- Returns
- YES if offline or preloaded data is available, else NO,
◆ delegate
Delegate object. This is another way of handling data fetching. Using completionHandler block instead is recommended.