本文整理汇总了Java中android.support.v7.media.MediaRouter.RouteInfo.requestUpdateVolume方法的典型用法代码示例。如果您正苦于以下问题:Java RouteInfo.requestUpdateVolume方法的具体用法?Java RouteInfo.requestUpdateVolume怎么用?Java RouteInfo.requestUpdateVolume使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v7.media.MediaRouter.RouteInfo
的用法示例。
在下文中一共展示了RouteInfo.requestUpdateVolume方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateVolume
import android.support.v7.media.MediaRouter.RouteInfo; //导入方法依赖的package包/类
/**
* Increments or decrements volume by <code>delta</code> if <code>delta > 0</code> or
* <code>delta < 0</code>, respectively. Note that the volume range is between 0 and
* RouteInfo.getVolumeMax()
*/
public void updateVolume(int delta) {
if (null != mMediaRouter.getSelectedRoute()) {
RouteInfo info = mMediaRouter.getSelectedRoute();
info.requestUpdateVolume(delta);
}
}
示例2: updateVolume
import android.support.v7.media.MediaRouter.RouteInfo; //导入方法依赖的package包/类
/**
* Increments or decrements volume by <code>delta</code> if <code>delta > 0</code> or
* <code>delta < 0</code>, respectively. Note that the volume range is between 0 and {@link
* RouteInfo.getVolumeMax()}.
*
* @param delta
*/
public void updateVolume(int delta) {
if (null != mMediaRouter.getSelectedRoute()) {
RouteInfo info = mMediaRouter.getSelectedRoute();
info.requestUpdateVolume(delta);
}
}
示例3: updateVolume
import android.support.v7.media.MediaRouter.RouteInfo; //导入方法依赖的package包/类
/**
* Increments or decrements volume by <code>delta</code> if {@code delta < 0} or
* {@code delta > 0}, respectively. Note that the volume range is between 0 and {@code
* RouteInfo.getVolumeMax()}.
*/
public void updateVolume(int delta) {
RouteInfo info = mMediaRouter.getSelectedRoute();
info.requestUpdateVolume(delta);
}