Class ViewProvider
Package world.mappable.runtime.ui_view
java.lang.Object
↳ world.mappable.runtime.ui_view.ViewProvider
class ViewProvider
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
Constructors
|
Signature and Description |
|
ViewProvider(android.view.View view, |
|
ViewProvider(android.view.View view) |
Methods
|
Type and modifiers |
Method and Description |
|
java.lang.String |
getId() |
|
boolean |
isCacheable() |
|
void |
snapshot() |
Constuctors
ViewProvider
|
ViewProvider(android.view.View view, |
Constructor of ViewProvider.
Attention: Blocks the UI by executing the snapshot function.
|
Parameters |
|
|
|
Any custom user defined View. |
|
|
Weather provided view snapshot should be cached in internal cache. |
ViewProvider
|
ViewProvider(android.view.View view) |
Constructor of ViewProvider.
Cacheable flag will be set True value by default. Attention: Blocks the UI by executing the snapshot function.
|
Parameters |
|
|
|
Any custom user defined View. |
Methods
getId
|
java.lang.String getId() |
Unique ID of the view provider.
isCacheable
|
boolean isCacheable() |
True if view provider is cacheable.
False otherwise.
snapshot
|
void snapshot() |
Takes a snapshot of the given view.
Attention: This blocks the UI.