getAndroidDeviceInfo method

  1. @override
Future<Map<String, dynamic>> getAndroidDeviceInfo()
override

Retrieves information about the Android device.

This function fetches various details about the Android device, such as model, manufacturer, OS version, and other related information, and returns it as a Map<String, dynamic>.

Returns:

  • A Future<Map<String, dynamic>> that completes with a map containing device information, where the keys are strings (e.g., 'model', 'manufacturer') and the values are dynamic, representing the corresponding information.

Example Usage:

Map<String, dynamic> deviceInfo = await getAndroidDeviceInfo();
print('Device Model: ${deviceInfo['model']}');
print('OS Version: ${deviceInfo['version']}');

This method should be implemented to fetch and return the device information.

Implementation

@override
Future<Map<String, dynamic>> getAndroidDeviceInfo() async {
  return await ThanPkg.android.app.getDeviceInfo();
}