Skip to content

IOS Mobile Env

IOS mobile platform for various-devices

getMobileDeviceInfo

platform IOS

usage

js
import { isIOS } from 'various-devices'
const result = isIOS()

isIOS This API is used to check if the current platform is iOS It return value boolean

js
import { getMobileDeviceInfo } from 'various-devices'
const result = getMobileDeviceInfo()

getMobileDeviceInfo This API is used to retrieve information about mobile devices, including the device type IOS and the current screen width and height.

ts
export interface Result {
  platform: "ios";
  screenWidth: number;
  screenHeight: number;
}

params

  1. platform string platform (IOS 环境)
  2. screenWidth number current screen width(当前屏幕宽度)
  3. screenHeight number current screen height(当前屏幕高度)

Contributors

xiaoMan
xiaoMan

💻 📖 🎨
yanzibiezou
yanzibiezou

💻
徐轲
徐轲

💻
yinxing233
yinxing233

💻
Add your contributions