本文整理汇总了Java中com.connectsdk.service.netcast.NetcastVirtualKeycodes类的典型用法代码示例。如果您正苦于以下问题:Java NetcastVirtualKeycodes类的具体用法?Java NetcastVirtualKeycodes怎么用?Java NetcastVirtualKeycodes使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NetcastVirtualKeycodes类属于com.connectsdk.service.netcast包,在下文中一共展示了NetcastVirtualKeycodes类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: set3DEnabled
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void set3DEnabled(final boolean enabled, final ResponseListener<Object> listener) {
get3DEnabled(new State3DModeListener() {
@Override
public void onSuccess(Boolean isEnabled) {
if (enabled != isEnabled) {
sendVirtualKeyCode(NetcastVirtualKeycodes.VIDEO_3D.getCode(), listener);
}
}
@Override
public void onError(ServiceCommandError error) {
Util.postError(listener, error);
}
});
}
示例2: setMute
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void setMute(final boolean isMute, final ResponseListener<Object> listener) {
getVolumeStatus(new VolumeStatusListener() {
@Override
public void onSuccess(VolumeStatus status) {
if (isMute != status.isMute) {
sendVirtualKeyCode(NetcastVirtualKeycodes.MUTE.getCode(), listener);
}
}
@Override
public void onError(ServiceCommandError error) {
Util.postError(listener, error);
}
});
}
示例3: sendEnter
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void sendEnter() {
ResponseListener<Object> responseListener = new ResponseListener<Object>() {
@Override
public void onSuccess(Object response) {
}
@Override
public void onError(ServiceCommandError error) {
Log.w(Util.T, "Netcast TV's enter key has been failed");
}
};
handleKeyboardInput("EditEnd", keyboardString.toString());
sendVirtualKeyCode(NetcastVirtualKeycodes.RED.getCode(), responseListener); // Send RED Key to enter the "ENTER" button
}
示例4: powerOff
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void powerOff(ResponseListener<Object> listener) {
ResponseListener<Object> responseListener = new ResponseListener<Object>() {
@Override
public void onSuccess(Object response) {
}
@Override
public void onError(ServiceCommandError error) {
Log.w(Util.T, "Netcast TV's power off has been failed");
}
};
sendVirtualKeyCode(NetcastVirtualKeycodes.POWER.getCode(), responseListener);
}
示例5: channelUp
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void channelUp(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.CHANNEL_UP.getCode(), listener);
}
示例6: channelDown
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void channelDown(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.CHANNEL_DOWN.getCode(), listener);
}
示例7: volumeUp
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void volumeUp(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.VOLUME_UP.getCode(), listener);
}
示例8: volumeDown
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void volumeDown(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.VOLUME_DOWN.getCode(), listener);
}
示例9: closeInputPicker
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void closeInputPicker(LaunchSession launchSession, ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.EXIT.getCode(), listener);
}
示例10: play
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void play(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.PLAY.getCode(), listener);
}
示例11: pause
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void pause(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.PAUSE.getCode(), listener);
}
示例12: stop
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void stop(final ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.STOP.getCode(), listener);
}
示例13: previous
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void previous(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.SKIP_BACKWARD.getCode(), listener);
}
示例14: next
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void next(ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.SKIP_FORWARD.getCode(), listener);
}
示例15: up
import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void up(final ResponseListener<Object> listener) {
sendVirtualKeyCode(NetcastVirtualKeycodes.KEY_UP.getCode(), listener);
}