getDeviceIDType static method
Get currently used device Id type. Should be call after Countly init
Implementation
static Future<DeviceIdType?> getDeviceIDType() async {
log('Calling "getDeviceIDType"');
if (!_instance._countlyState.isInitialized) {
log('getDeviceIDType, "initWithConfig" must be called before "getDeviceIDType"', logLevel: LogLevel.ERROR);
return null;
}
final String? result = await _channel.invokeMethod('getDeviceIDType');
if (result == null) {
log('getDeviceIDType, unexpected null value from native side', logLevel: LogLevel.ERROR);
return null;
}
return _getDeviceIdType(result);
}