Maply3dTouchPreviewDatasource

Objective-C

@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

Swift

protocol Maply3dTouchPreviewDatasource

Undocumented

  • Asks the data source for a view controller to display as a preview for a selected object

    Declaration

    Objective-C

    - (id)maplyViewController:(MaplyBaseViewController *_Nonnull)viewC
        previewViewControllerForSelection:(NSObject *_Nonnull)selectedObj;

    Swift

    func maplyViewController(_ viewC: MaplyBaseViewController, previewViewControllerForSelection selectedObj: Any!) -> Any!

    Parameters

    viewC

    the map requesting the view controller;

    selectedObj

    The object a preview is being requested for.

    Return Value

    a UIViewController, or nil if no preview should be displayed.

  • Asks the data source to present a preview view controller.

    the most likely implementation of this is [self show:previewViewC sender:self];

    Declaration

    Objective-C

    - (void)maplyViewController:(MaplyBaseViewController *_Nonnull)viewC
        showPreviewViewController:(id)previewViewC;

    Swift

    func maplyViewController(_ viewC: MaplyBaseViewController, showPreviewViewController previewViewC: Any!)

    Parameters

    viewC

    the map requesting the view controller;

    previewViewC

    the view controller to present.