Options
All
  • Public
  • Public/Protected
  • All
Menu

Module device/iphone

Index

Functions

getBottomBarHeight

0.0.35 provide
  • getBottomBarHeight(): 0 | 68

getNavBarHeight

0.0.35 provide
  • getNavBarHeight(): 80 | 96

getStatusBarHeight

0.0.35 provide
  • getStatusBarHeight(): number

isIphoneXSeries

0.0.35 provide
  • isIphoneXSeries(): boolean
  • 判断当前机型是否是iphone异形屏幕

    remarks

    只适用web场景下适用

    remarks

    目前已知的设变宽高 iPhone X,XS, 11 PRO = 375 x 812 iphone XS Max,XR, 11PRO MAx, 11 = 414 x 896 iphone 12 PRO MAX = 428 x 926 iphone 12, 12 PRO = 390 x 844 iphone 12 mini = 360 X 780

    Returns boolean