MRTViewProvider

@interface MRTViewProvider : NSObject {
  BOOL _cacheable;
}

This class can be used to associate any custom view with PlacemarkMapObject. Snapshot of provided view is taken in constructor and updated any time snapshot method is called by user.

Summary

Instance methods

- (id)initWithUIView:(UIView *)view cacheable:(BOOL)cacheable;
Constructor of MRTViewProvider

- (id)initWithUIView:(UIView *)view;
Constructor of MRTViewProvider

- (void)snapshot;
Takes a snapshot of the given view

Instance variables

BOOL _cacheable

Properties

@property (nonatomic, readonly) BOOL cacheable;
True if view provider is cacheable

Instance methods

initWithUIView:cacheable:

- (id)initWithUIView:(UIView *)view cacheable:(BOOL)cacheable;

Constructor of MRTViewProvider. Attention: This blocks the UI via executing snapshot function.


initWithUIView:

- (id)initWithUIView:(UIView *)view;

Constructor of MRTViewProvider. Cacheable flag will have YES value by default. Attention: This blocks the UI via executing snapshot function.


snapshot

- (void)snapshot;

Takes a snapshot of the given view. Attention: This blocks the UI.


Instance variables

_cacheable

BOOL _cacheable


Properties

cacheable

@property (nonatomic, readonly) BOOL cacheable;

True if view provider is cacheable. False otherwise.