@Implements(value=android.media.MediaRouter.class) public class ShadowMediaRouter extends java.lang.Object
Shadow class for MediaRouter
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BLUETOOTH_DEVICE_NAME |
Constructor and Description |
---|
ShadowMediaRouter() |
Modifier and Type | Method and Description |
---|---|
void |
addBluetoothRoute()
Adds the Bluetooth A2DP route and ensures it’s the selected route, simulating connecting a Bluetooth device.
|
boolean |
isBluetoothRouteSelected(int type)
Returns whether the Bluetooth A2DP route is the currently selected route.
|
void |
removeBluetoothRoute()
Removes the Bluetooth A2DP route, simulating disconnecting the Bluetooth device.
|
static void |
reset() |
public static final java.lang.String BLUETOOTH_DEVICE_NAME
public void addBluetoothRoute()
Adds the Bluetooth A2DP route and ensures it’s the selected route, simulating connecting a Bluetooth device.
public void removeBluetoothRoute()
Removes the Bluetooth A2DP route, simulating disconnecting the Bluetooth device.
public boolean isBluetoothRouteSelected(int type)
Returns whether the Bluetooth A2DP route is the currently selected route.
@Resetter public static void reset()