public interface Surface
Modifier and Type | Method and Description |
---|---|
android.view.View |
attach(MicroService service,
java.lang.Runnable onAttached)
Attaches a MicroService to the UI.
|
void |
bind(MicroService service,
JSContext context,
Synchronizer synchronizer)
Binds a MicroService to the surface.
|
void |
detach()
Detaches any currently attached MicroService.
|
void |
reset()
Detaches and clears the Surface.
|
void bind(MicroService service, JSContext context, Synchronizer synchronizer)
service
- The microservice to bindcontext
- The Javascript context on which to bindsynchronizer
- Used for synchronizing asynchronous initandroid.view.View attach(MicroService service, java.lang.Runnable onAttached)
service
- The MicroService to attachonAttached
- A runnable to be called after the UI is activevoid detach()
void reset()