/// <summary>
        /// 遍历设备
        /// </summary>
        /// <param name="type">设备类型</param>
        /// <returns>NIMDeviceInfoList 设备属性列表</returns>
        public static NIMDeviceInfoList GetDeviceList(NIMDeviceType type)
        {
#if NIMAPI_UNDER_WIN_DESKTOP_ONLY || UNITY_STANDALONE_WIN
            DeviceNativeMethods.nim_vchat_enum_device_devpath(type, "", GetDeviceListCb, IntPtr.Zero);
            return(_deviceList);
#else
            return(null);
#endif
        }
示例#2
0
 /// <summary>
 /// 遍历设备
 /// </summary>
 /// <param name="type">设备类型</param>
 /// <returns></returns>
 public static NIMDeviceInfoList GetDeviceList(NIMDeviceType type)
 {
     DeviceNativeMethods.nim_vchat_enum_device_devpath(type, "", GetDeviceListCb, IntPtr.Zero);
     return(_deviceList);
 }