Repository navigation
Expand file tree
/
Copy pathCDAMapViewController.h
More file actions
67 lines (50 loc) · 2.01 KB
/
Copy pathCDAMapViewController.h
File metadata and controls
67 lines (50 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// CDAMapViewController.h
// ContentfulSDK
//
// Created by Boris Bügling on 02/04/14.
//
//
#if __has_feature(modules)
@import UIKit;
#else
#import <UIKit/UIKit.h>
#endif
#import <ContentfulDeliveryAPI/CDAClient.h>
/**
* `CDAMapViewController` fetches Entries and displays them on a `MKMapView`.
*
* You have to configure which Fields will be used to fill the `MKAnnotation` properties.
*/
@interface CDAMapViewController : UIViewController
/** The underlying map view managed by this view controller. */
@property (nonatomic, readonly) MKMapView* __nonnull mapView;
/** @name Configure Data to Display */
/** Identifier for the Field which contains the coordinate for each `MKAnnotation`. */
@property (nonatomic, copy) NSString* __nullable coordinateFieldIdentifier;
/** Identifier for the Field which contains the subtitle for each `MKAnnotation`. */
@property (nonatomic, copy) NSString* __nullable subtitleFieldIdentifier;
/** Identifier for the Field which contains the title for each `MKAnnotation`. */
@property (nonatomic, copy) NSString* __nullable titleFieldIdentifier;
/** @name Configure Data to Fetch */
/**
The client which is used to fetch Entries. Make sure to set it before displaying the view
controller's view or an exception will be thrown unless `initWithCellMapping:items:` was used to
initialize this view controller.
The client is not retained.
*/
@property (nonatomic, weak) CDAClient* __nullable client;
/** The items which are currently displayed in this view controller's table view. */
@property (nonatomic, readonly) NSArray* __nullable items;
/**
The query parameters used for fetching Entries. By default, all Entries from the Space associated
with the client will be fetched.
*/
@property (nonatomic) NSDictionary* __nullable query;
/**
Activate the built-in support for caching Resources offline.
The cached data will only be used if the device is truly offline, use a `CDASyncedSpace` instead for
general purpose caching.
*/
@property (nonatomic) BOOL offlineCaching;
@end