Last updated October 1, 2026
Device Network
Identifies the network type of the user's device.
TTMinis.game.getNetworkType(opts)
Gets the network type.
Parameters
Field | Type | Description | Required |
|
| The callback function called when the API call succeeds | No |
|
| The callback function called when the API call fails | No |
|
| The callback function called when the API call ends. Called whether the call succeeds or fails. | No |
Response object (success callback)
Field | Type | Description |
|
| The network type |
|
| The signal strength in dBm |
|
| Whether the device uses a network proxy |
|
| Whether the device is in a weak network environment |
Example
TTMinis.game.getNetworkType({
success(res) {
const networkType = res.networkType;
const weakNet = res.weakNet;
console.log("Network type:", networkType);
console.log("Weak network:", weakNet);
}
});