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
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 Details
-
of
-
bind
-
create
- Specified by:
create
in classComponentController<ServiceController<T extends Service>,T extends Service>
-
destroy
- Specified by:
destroy
in classComponentController<ServiceController<T extends Service>,T extends Service>
-
rebind
-
startCommand
-
unbind
-
withIntent
Deprecated.Use the appropriate builder inRobolectric
instead. This method will be removed in Robolectric 3.6.
-