blob: ef42bf5406b232d3b16bcfa305d2b97b08b26390 (
plain)
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
|
//
// Maply3DTouchPreviewDatasource.h
// WhirlyGlobe-MaplyComponent
//
// Created by Jesse Crocker on 10/4/15.
//
//
@class MaplyBaseViewController;
@protocol Maply3dTouchPreviewDatasource <NSObject>
@required
/**
Asks the data source for a view controller to display as a preview for a selected object
@param viewC the map requesting the view controller;
@param selectedObj The object a preview is being requested for.
@return a UIViewController, or nil if no preview should be displayed.
*/
- (UIViewController * _Nullable)maplyViewController:(MaplyBaseViewController * _Nonnull)viewC
previewViewControllerForSelection:(NSObject * _Nonnull)selectedObj;
/**
Asks the data source to present a preview view controller.
the most likely implementation of this is [self show:previewViewC sender:self];
@param viewC the map requesting the view controller;
@param previewViewC the view controller to present.
*/
- (void)maplyViewController:(MaplyBaseViewController * _Nonnull)viewC
showPreviewViewController:(UIViewController * _Nonnull)previewViewC;
@end
|