本文整理匯總了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();
}