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 #
Field | Type | Description |
---|---|---|
DeviceId | string | Unique device identifier |
SoftwareVersion | string | Baseband software version |
PhoneType | string | Phone type (GSM, CDMA, etc.) |
NetworkOperatorName | string | Network operator name |
NetworkCountryIso | string | Network country ISO code |
SimOperatorName | string | SIM operator name |
SimCountryIso | string | SIM country ISO code |