Gets information about the telephony device.

Usage #

package main

import (
    "fmt"
    t "github.com/hugmouse/gotermux"
)

func main() {
    deviceInfo := t.TermuxTelephonyDeviceInfo()
    fmt.Printf("Device ID: %s\n", deviceInfo.DeviceId)
    fmt.Printf("Software Version: %s\n", deviceInfo.SoftwareVersion)
    fmt.Printf("Phone Type: %s\n", deviceInfo.PhoneType)
}

Return Value #

Returns TDevice containing telephony device information.

Struct TDevice #

FieldTypeDescription
DeviceIdstringUnique device identifier
SoftwareVersionstringBaseband software version
PhoneTypestringPhone type (GSM, CDMA, etc.)
NetworkOperatorNamestringNetwork operator name
NetworkCountryIsostringNetwork country ISO code
SimOperatorNamestringSIM operator name
SimCountryIsostringSIM country ISO code