UCKDeviceInfo 0.0.1

UCKDeviceInfo 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Keisuke Uchida

UCKDeviceInfo {

UCKDeviceInfo gets device information.
For example, the application name and remaining battery power.
screenshot

Table of Contents

  1. Requirements
  2. Installtion
  3. Device info
  4. Usage
  5. License

Requirements

  • iOS SDK 7.0
  • iOS 5.1.1
  • Xcode 5.0
  • ARC

[⬆]

Installtion

Manual

Add classes folder to your project.

Getting device information

  • Application name
  • Application version
  • Battery level(%)
  • Battery status name
  • OS Version
  • Platform
  • Model
  • Brand
  • Free memory size(MB)
  • Total memory size(MB)
  • Network type name

[⬆]

Usage

    UCKDeviceDataManager *deviceDataManager = [[UCKDeviceDataManager alloc] init];
    UCKDeviceData *deviceData = deviceDataManager.deviceData;
    UCKApplicationData *applicationData = deviceData.applicationData;
    UCKBatteryData *batteryData = deviceData.batteryData;
    UCKNetworkData *networkData = deviceData.networkData;
    UCKSystemData *systemData = deviceData.systemData;

    NSMutableString *messageString = [NSMutableString stringWithCapacity:0];
    [messageString appendFormat:@"Application name:%@\n", applicationData.applicationName];
    [messageString appendFormat:@"Application version:%@\n", applicationData.applicationVersionName];
    [messageString appendFormat:@"OS Version:%@\n", systemData.osVersion];
    [messageString appendFormat:@"Platform:%@\n", systemData.platform];
    [messageString appendFormat:@"Model:%@\n", systemData.model];
    [messageString appendFormat:@"Brand:%@\n", systemData.brand];
    [messageString appendFormat:@"Free memory:%ld(MB)\n", systemData.freeSpace];
    [messageString appendFormat:@"Total memory:%ld(MB)\n", systemData.totalSpace];
    [messageString appendFormat:@"Battery level:%d\n", batteryData.level];
    [messageString appendFormat:@"Battery status:%@\n", batteryData.statusName];
    [messageString appendFormat:@"Network type:%@\n", networkData.networkTypeName];

    UIAlertView *alert = [[UIAlertView alloc] init];
    alert.title = @"Device info";
    alert.message = messageString;
    [alert addButtonWithTitle:@"Close"];
    [alert show];

[⬆]

License and Credits

UCKDeviceInfo © 2014 Keisuke Uchida (http://uchidak.net) All rights reserved.
MIT License.

This software uses the open source software listed below.

Reachability © Apple Inc. All rights reserved.

[⬆]

};

© 2013 Keisuke Uchida All rights reserved.