Class ServiceController<T extends Service>
- java.lang.Object
-
- org.robolectric.android.controller.ComponentController<ServiceController<T>,T>
-
- org.robolectric.android.controller.ServiceController<T>
-
public class ServiceController<T extends Service> extends ComponentController<ServiceController<T>,T>
-
-
Field Summary
-
Fields inherited from class org.robolectric.android.controller.ComponentController
attached, component, intent, myself, shadowMainLooper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServiceController<T>
bind()
ServiceController<T>
create()
ServiceController<T>
destroy()
static <T extends Service>
ServiceController<T>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 inRobolectric
instead.-
Methods inherited from class org.robolectric.android.controller.ComponentController
get, getIntent, invokeWhilePaused, invokeWhilePaused
-
-
-
-
Method Detail
-
of
public static <T extends Service> ServiceController<T> of(T service, Intent intent)
-
bind
public ServiceController<T> bind()
-
create
public ServiceController<T> create()
- Specified by:
create
in classComponentController<ServiceController<T extends Service>,T extends Service>
-
destroy
public ServiceController<T> destroy()
- Specified by:
destroy
in classComponentController<ServiceController<T extends Service>,T extends Service>
-
rebind
public ServiceController<T> rebind()
-
startCommand
public ServiceController<T> startCommand(int flags, int startId)
-
unbind
public ServiceController<T> unbind()
-
withIntent
@Deprecated public ServiceController<T> withIntent(Intent intent)
Deprecated.Use the appropriate builder inRobolectric
instead. This method will be removed in Robolectric 3.6.
-
-