getDeviceId method

  1. @override
Future<String> getDeviceId()
override

Retrieves the unique device ID.

This function returns a unique identifier for the device. The method of obtaining the device ID may vary based on the platform (Android, iOS, etc.).

Returns:

  • A Future that resolves to a String containing the device ID.
  • Returns null if the device ID cannot be determined.

Example Usage:

String? deviceId = await getDeviceId();
print("Device ID: $deviceId");

This method should be implemented to provide actual functionality.

Implementation

@override
Future<String> getDeviceId() async {
  return await ThanPkg.android.app.getDeviceId();
}