---
description: 快捷判断当前访问设备类型
---

# 设备判断 DeviceLibrary

| 方法        | 调用方法                                                    | 功能介绍           |
| --------- | ------------------------------------------------------- | -------------- |
| `mobile`  | Abnermouke\Supports\Library\DeviceLibrary::mobile($ua)  | 判断是否为手机访问      |
| `pc`      | Abnermouke\Supports\Library\DeviceLibrary::pc($ua)      | 判断是否为PC访问      |
| `windows` | Abnermouke\Supports\Library\DeviceLibrary::windows($ua) | 判断是否为Windows访问 |
| `unix`    | Abnermouke\Supports\Library\DeviceLibrary::unix($ua)    | 判断是否为unix设备访问  |
| `linux`   | Abnermouke\Supports\Library\DeviceLibrary::linux($ua)   | 判断是否为linux设备访问 |
| `mac`     | Abnermouke\Supports\Library\DeviceLibrary::mac($ua)     | 判断是否为mac设备访问   |
| `ipod`    | Abnermouke\Supports\Library\DeviceLibrary::ipod($ua)    | 判断是否为ipod访问    |
| `ipad`    | Abnermouke\Supports\Library\DeviceLibrary::ipad($ua)    | 判断是否为ipad访问    |
| `iphone`  | Abnermouke\Supports\Library\DeviceLibrary::iphone($ua)  | 判断是否为ipone设备访问 |
| `android` | Abnermouke\Supports\Library\DeviceLibrary::android($ua) | 判断是否为安卓设备访问    |

