示例#1
0
        public IChannelCapability Detect()
        {
            var isEmulator = channel?.ChannelId?.Equals("emulator", StringComparison.OrdinalIgnoreCase);
            var capability = new ChannelCapability(!(isEmulator.HasValue && isEmulator.Value));

            return(capability);
        }
示例#2
0
        public IChannelCapability Detect()
        {
            var isEmulator = ConnectorClientFactory.IsEmulator(this.address);
            var capability = new ChannelCapability(supportButtons: !isEmulator);

            return(capability);
        }
示例#3
0
 public IChannelCapability Detect()
 {
     var isEmulator = channel?.ChannelId?.Equals("emulator", StringComparison.OrdinalIgnoreCase);
     var capability = new ChannelCapability(!(isEmulator.HasValue && isEmulator.Value));
     return capability;
 }