Added in API level 21

StructUtsname


class StructUtsname
kotlin.Any
   ↳ android.system.StructUtsname

Information returned by Os.uname. Corresponds to C's struct utsname from <sys/utsname.h>.

Summary

Public constructors
StructUtsname(sysname: String!, nodename: String!, release: String!, version: String!, machine: String!)

Constructs an instance with the given field values.

Public methods
String

Properties
String!

The machine architecture, such as "armv7l" or "x86_64".

String!

The machine's unqualified name on some implementation-defined network.

String!

The OS release, such as "2.

String!

The OS name, such as "Linux".

String!

The OS version, such as "#48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011".

Public constructors

StructUtsname

Added in API level 21
StructUtsname(
    sysname: String!,
    nodename: String!,
    release: String!,
    version: String!,
    machine: String!)

Constructs an instance with the given field values.

Public methods

toString

Added in API level 21
fun toString(): String
Return
String a string representation of the object.

Properties

machine

Added in API level 21
val machine: String!

The machine architecture, such as "armv7l" or "x86_64".

nodename

Added in API level 21
val nodename: String!

The machine's unqualified name on some implementation-defined network.

release

Added in API level 21
val release: String!

The OS release, such as "2.6.35-27-generic".

sysname

Added in API level 21
val sysname: String!

The OS name, such as "Linux".

version

Added in API level 21
val version: String!

The OS version, such as "#48-Ubuntu SMP Tue Feb 22 20:25:29 UTC 2011".