ShadowMediaBrowserCompat

Alternative to the built-in Robolectric shadow org.robolectric.shadows.support.v4.ShadowMediaBrowserCompat with improved connection behavior, and extra verification capabilities.

Can be used as a normal Robolectric shadow:

@Config(shadows = [ShadowMediaBrowserCompat::class])
class MediaBrowserExampleTest : IviTestCase() { /* ... */}

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class SubscriptionCall(val parentId: String, val options: Bundle?, val callback: MediaBrowserCompat.SubscriptionCallback)

Functions

Link copied to clipboard
@Implementation
fun connect()
Link copied to clipboard
@Implementation
fun disconnect()
Link copied to clipboard
@Implementation
fun getExtras(): Bundle
Link copied to clipboard
@Implementation
fun getRoot(): String
Link copied to clipboard
Link copied to clipboard
@Implementation
fun search(query: String, extras: Bundle?, callback: MediaBrowserCompat.SearchCallback)
Link copied to clipboard
@Implementation
fun sendCustomAction(action: String, extras: Bundle?, callback: MediaBrowserCompat.CustomActionCallback?)
Link copied to clipboard
@Implementation
fun subscribe(parentId: String, callback: MediaBrowserCompat.SubscriptionCallback)
@Implementation
fun subscribe(parentId: String, options: Bundle, callback: MediaBrowserCompat.SubscriptionCallback)
Link copied to clipboard
@Implementation
fun unsubscribe(parentId: String)
@Implementation
fun unsubscribe(parentId: String, callback: MediaBrowserCompat.SubscriptionCallback)