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 TypeMethodDescriptionbind()
create()
destroy()
static <T extends Service>
ServiceController<T>rebind()
startCommand
(int flags, int startId) unbind()
withIntent
(Intent intent) Deprecated.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.
-
Robolectric
instead.