• IOS


    + (UIDevice *)currentDevice;

    @property(nonatomic,readonly,retain) NSString    *name;              // e.g. "My iPhone"

    @property(nonatomic,readonly,retain) NSString    *model;             // e.g. @"iPhone", @"iPod touch"

    @property(nonatomic,readonly,retain) NSString    *localizedModel;    // localized version of model

    @property(nonatomic,readonly,retain) NSString    *systemName;        // e.g. @"iOS"

    @property(nonatomic,readonly,retain) NSString    *systemVersion;     // e.g. @"4.0"

    @property(nonatomic,readonly) UIDeviceOrientation orientation;       // return current device orientation.  this will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.

    @property(nonatomic,readonly,retain) NSUUID      *identifierForVendor NS_AVAILABLE_IOS(6_0);      // a UUID that may be used to uniquely identify the device, same across apps from a single vendor.

     

    @property(nonatomic,readonly,getter=isGeneratingDeviceOrientationNotifications) BOOL generatesDeviceOrientationNotifications;

    - (void)beginGeneratingDeviceOrientationNotifications;      // nestable

    - (void)endGeneratingDeviceOrientationNotifications;

     

    @property(nonatomic,getter=isBatteryMonitoringEnabled) BOOL batteryMonitoringEnabled NS_AVAILABLE_IOS(3_0);  // default is NO

    @property(nonatomic,readonly) UIDeviceBatteryState          batteryState NS_AVAILABLE_IOS(3_0);  // UIDeviceBatteryStateUnknown if monitoring disabled

    @property(nonatomic,readonly) float                         batteryLevel NS_AVAILABLE_IOS(3_0);  // 0 .. 1.0. -1.0 if UIDeviceBatteryStateUnknown

     

    @property(nonatomic,getter=isProximityMonitoringEnabled) BOOL proximityMonitoringEnabled NS_AVAILABLE_IOS(3_0); // default is NO

    @property(nonatomic,readonly)                            BOOL proximityState NS_AVAILABLE_IOS(3_0);  // always returns NO if no proximity detector

     

    @property(nonatomic,readonly,getter=isMultitaskingSupported) BOOL multitaskingSupported NS_AVAILABLE_IOS(4_0);

     

    @property(nonatomic,readonly) UIUserInterfaceIdiom userInterfaceIdiom NS_AVAILABLE_IOS(3_2);

     

    - (void)playInputClick NS_AVAILABLE_IOS(4_2);  // Plays a click only if an enabling input view is on-screen and user has enabled input clicks.

  • 相关阅读:
    VMware vSphere Esxi各版本差别及各套件差别
    vue3组件封装
    JavaScript前端时间库moment.js
    vue3语法糖script setup
    vue3的reactive对象赋值后失去响应式的问题
    vscode插件安装和配置支持vue3
    Kettle 获取存储过程的返回值
    java.sql.Types中定义的JDBC类型的对应int值
    kettle报错:Unexpected problem reading shared objects from XML file:null
    Kettle转换用上一步返回结果集作为下一步输入参数
  • 原文地址:https://www.cnblogs.com/tx8899/p/3968436.html
Copyright © 2020-2023  润新知