@Implements(android.media.MediaRouter.class) public class ShadowMediaRouter extends Object
MediaRouter
.Modifier and Type | Field | Description |
---|---|---|
static String |
BLUETOOTH_DEVICE_NAME |
Constructor | Description |
---|---|
ShadowMediaRouter() |
Modifier and Type | Method | 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 String BLUETOOTH_DEVICE_NAME
public void addBluetoothRoute()
public void removeBluetoothRoute()
public boolean isBluetoothRouteSelected(int type)
@Resetter public static void reset()