本文整理汇总了Java中android.support.v4.media.TransportController类的典型用法代码示例。如果您正苦于以下问题:Java TransportController类的具体用法?Java TransportController怎么用?Java TransportController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TransportController类属于android.support.v4.media包,在下文中一共展示了TransportController类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: type
import android.support.v4.media.TransportController; //导入依赖的package包/类
public static SubjectFactory<TransportControllerSubject, TransportController> type() {
return new SubjectFactory<TransportControllerSubject, TransportController>() {
@Override
public TransportControllerSubject getSubject(FailureStrategy fs, TransportController that) {
return new TransportControllerSubject(fs, that);
}
};
}
示例2: setMediaPlayer
import android.support.v4.media.TransportController; //导入依赖的package包/类
public void setMediaPlayer(TransportController controller) {
if (getWindowToken() != null) {
if (mController != null) {
mController.unregisterStateListener(mStateListener);
}
if (controller != null) {
controller.registerStateListener(mStateListener);
}
}
mController = controller;
updatePausePlay();
}
示例3: TransportControllerSubject
import android.support.v4.media.TransportController; //导入依赖的package包/类
protected TransportControllerSubject(FailureStrategy failureStrategy, TransportController subject) {
super(failureStrategy, subject);
}
示例4: onPlayingChanged
import android.support.v4.media.TransportController; //导入依赖的package包/类
@Override
public void onPlayingChanged(TransportController controller) {
updatePausePlay();
}
示例5: onTransportControlsChanged
import android.support.v4.media.TransportController; //导入依赖的package包/类
@Override
public void onTransportControlsChanged(TransportController controller) {
updateButtons();
}