public class ServiceController<T extends 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 Service> |
of(T service,
Intent intent) |
ServiceController<T> |
rebind() |
ServiceController<T> |
startCommand(int flags,
int startId) |
ServiceController<T> |
unbind() |
ServiceController<T> |
withIntent(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 Service> ServiceController<T> of(T service, Intent intent)
public ServiceController<T> bind()
public ServiceController<T> create()
create
in class ComponentController<ServiceController<T extends Service>,T extends Service>
public ServiceController<T> destroy()
destroy
in class ComponentController<ServiceController<T extends Service>,T extends Service>
public ServiceController<T> rebind()
public ServiceController<T> startCommand(int flags, int startId)
public ServiceController<T> unbind()
@Deprecated public ServiceController<T> withIntent(Intent intent)
Robolectric
instead.
This method will be removed in Robolectric 3.6.