public class ServiceController<T extends android.app.Service> extends ComponentController<ServiceController<T>,T>
attached, component, intent, myself, shadowMainLooper
Modifier and Type | Method and Description |
---|---|
ServiceController<T> |
bind() |
ServiceController<T> |
create() |
ServiceController<T> |
destroy() |
static <T extends android.app.Service> |
of(T service,
android.content.Intent intent) |
ServiceController<T> |
rebind() |
ServiceController<T> |
startCommand(int flags,
int startId) |
ServiceController<T> |
unbind() |
ServiceController<T> |
withIntent(android.content.Intent intent)
Deprecated.
Use the appropriate builder in
Robolectric instead.
This method will be removed in Robolectric 3.6. |
get, getIntent, invokeWhilePaused
public static <T extends android.app.Service> ServiceController<T> of(T service, android.content.Intent intent)
public ServiceController<T> bind()
public ServiceController<T> create()
create
in class ComponentController<ServiceController<T extends android.app.Service>,T extends android.app.Service>
public ServiceController<T> destroy()
destroy
in class ComponentController<ServiceController<T extends android.app.Service>,T extends android.app.Service>
public ServiceController<T> rebind()
public ServiceController<T> startCommand(int flags, int startId)
public ServiceController<T> unbind()
@Deprecated public ServiceController<T> withIntent(android.content.Intent intent)
Robolectric
instead.
This method will be removed in Robolectric 3.6.