mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-20 03:48:44 +08:00
34 lines
1.3 KiB
TypeScript
34 lines
1.3 KiB
TypeScript
// Type definitions for Apache Cordova Device plugin.
|
|
// Project: https://github.com/apache/cordova-plugin-device
|
|
// Definitions by: Microsoft Open Technologies, Inc. <http://msopentech.com>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
//
|
|
// Copyright (c) Microsoft Open Technologies, Inc.
|
|
// Licensed under the MIT license.
|
|
|
|
/**
|
|
* This plugin defines a global device object, which describes the device's hardware and software.
|
|
* Although the object is in the global scope, it is not available until after the deviceready event.
|
|
*/
|
|
interface Device {
|
|
/** Get the version of Cordova running on the device. */
|
|
cordova: string;
|
|
/**
|
|
* The device.model returns the name of the device's model or product. The value is set
|
|
* by the device manufacturer and may be different across versions of the same product.
|
|
*/
|
|
model: string;
|
|
/** Get the device's operating system name. */
|
|
platform: string;
|
|
/** Get the device's Universally Unique Identifier (UUID). */
|
|
uuid: string;
|
|
/** Get the operating system version. */
|
|
version: string;
|
|
/** Get the device's manufacturer. */
|
|
manufacturer: string;
|
|
/** Whether the device is running on a simulator. */
|
|
isVirtual: boolean;
|
|
/** Get the device hardware serial number. */
|
|
serial: string;}
|
|
|
|
declare var device: Device; |