コード例 #1
0
 public static async Task SetManagerInfo(ClientDeviceType type = ClientDeviceType.Samsung, int androidSdkVersion = 29)
 {
     byte[] payload = new byte[3];
     payload[0] = 1;
     payload[1] = (byte)type;
     payload[2] = (byte)androidSdkVersion;
     await BluetoothImpl.Instance.SendRequestAsync(SPPMessage.MessageIds.MANAGER_INFO, payload);
 }
コード例 #2
0
 public static SPPMessage SetManagerInfo(ClientDeviceType type = ClientDeviceType.Samsung, int androidSdkVersion = 29)
 {
     byte[] payload = new byte[3];
     payload[0] = 1;
     payload[1] = (byte)type;
     payload[2] = (byte)androidSdkVersion;
     return(new SPPMessage(SPPMessage.MessageIds.MSG_ID_MANAGER_INFO,
                           SPPMessage.MsgType.Request, payload));
 }
コード例 #3
0
ファイル: WebHelper.cs プロジェクト: xphter/Xphter.Framework
        /// <summary>
        /// Gets a value to indicate whether the specified device is a mobile device.
        /// </summary>
        /// <param name="deviceType"></param>
        /// <returns></returns>
        public static bool IsMobileDevice(ClientDeviceType deviceType)
        {
            switch (deviceType)
            {
            case ClientDeviceType.Phone:
            case ClientDeviceType.Tablet:
                return(true);

            default:
                return(false);
            }
        }