Package org.robolectric.shadows
Class ShadowTransportControls
java.lang.Object
org.robolectric.shadows.ShadowTransportControls
@Implements(android.media.session.MediaController.TransportControls.class)
public class ShadowTransportControls
extends Object
Shadow class for using
MediaController.TransportControls
in tests.
TransportControls should always be created by first creating a corresponding MediaController; *NOT*, for instance, via Shadows.newInstanceOf(TransportControls.class).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
getUri()
protected void
pause()
protected void
play()
protected void
playFromSearch
(String query, Bundle extras) protected void
playFromUri
(Uri uri, Bundle extras) protected void
prepareFromSearch
(String query, Bundle extras) protected void
prepareFromUri
(Uri uri, Bundle extras) protected void
seekTo
(long pos) protected void
sendCustomAction
(String action, Bundle args) protected void
protected void
protected void
protected void
skipToQueueItem
(long id) protected void
stop()
-
Field Details
-
realTransportControls
-
-
Constructor Details
-
ShadowTransportControls
public ShadowTransportControls()
-
-
Method Details
-
pause
-
play
-
playFromSearch
-
playFromUri
-
prepareFromSearch
-
prepareFromUri
-
seekTo
-
sendCustomAction
-
setRating
-
skipToNext
-
skipToPrevious
-
skipToQueueItem
-
stop
-
getLastPerformedAction
public long getLastPerformedAction() -
getCustomAction
-
getCustomActionArgs
-
getSeekToPositionMs
public long getSeekToPositionMs() -
getUri
-
getRating
-
getQueueItemId
public long getQueueItemId()
-