当前位置: 首页>>代码示例>>Java>>正文


Java NetcastVirtualKeycodes类代码示例

本文整理汇总了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);
        }
    });
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:18,代码来源:NetcastTVService.java

示例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);
        }
    });

}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:20,代码来源:NetcastTVService.java

示例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
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:19,代码来源:NetcastTVService.java

示例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);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:18,代码来源:NetcastTVService.java

示例5: channelUp

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void channelUp(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.CHANNEL_UP.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例6: channelDown

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void channelDown(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.CHANNEL_DOWN.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例7: volumeUp

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void volumeUp(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.VOLUME_UP.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例8: volumeDown

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void volumeDown(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.VOLUME_DOWN.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例9: closeInputPicker

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void closeInputPicker(LaunchSession launchSession, ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.EXIT.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例10: play

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void play(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.PLAY.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例11: pause

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void pause(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.PAUSE.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例12: stop

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void stop(final ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.STOP.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例13: previous

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void previous(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.SKIP_BACKWARD.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例14: next

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void next(ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.SKIP_FORWARD.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java

示例15: up

import com.connectsdk.service.netcast.NetcastVirtualKeycodes; //导入依赖的package包/类
@Override
public void up(final ResponseListener<Object> listener) {
    sendVirtualKeyCode(NetcastVirtualKeycodes.KEY_UP.getCode(), listener);
}
 
开发者ID:david-fenton,项目名称:Connect-SDK-Cordova-Plugin,代码行数:5,代码来源:NetcastTVService.java


注:本文中的com.connectsdk.service.netcast.NetcastVirtualKeycodes类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。