YRTViewProvider

@interface YRTViewProvider : 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 YRTViewProvider

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

- (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 YRTViewProvider. Attention: This blocks the UI via executing snapshot function.


initWithUIView:

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

Constructor of YRTViewProvider. 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.