DeviceInfo class

Message containing device informations.

Inheritance
  • Object
  • GeneratedMessage
  • DeviceInfo

Constructors

DeviceInfo({String? deviceCategory, String? mobileBrandName, String? mobileModelName, String? mobileMarketingName, String? platformVersion, String? deviceId, String? resettableDeviceId, String? userDefaultLanguage, int? deviceTimeZoneOffsetSeconds, bool? limitedAdTracking, String? deviceModel})
factory
DeviceInfo.fromBuffer(List<int> i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory
DeviceInfo.fromJson(String i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory

Properties

deviceCategory String
Device category. Eg. tablet or mobile.
getter/setter pair
deviceId String
Vendor specific device identifier. This is IDFV on iOS. Not used for Android. Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"
getter/setter pair
deviceModel String
Device model. Eg. GT-I9192
getter/setter pair
deviceTimeZoneOffsetSeconds int
The timezone of the device when data was uploaded as seconds skew from UTC.
getter/setter pair
eventPlugin → EventPlugin?
Subclasses can override this getter to be notified of changes to protobuf fields.
no setterinherited
hashCode int
Calculates a hash code based on the contents of the protobuf.
no setterinherited
info_ → BuilderInfo
no setteroverride
isFrozen bool
Returns true if this message is marked read-only. Otherwise false.
no setterinherited
limitedAdTracking bool
The device's Limit Ad Tracking setting. When true, we cannot use device_id for remarketing, demographics or influencing ads serving behaviour. However, we can use device_id for conversion tracking and campaign attribution.
getter/setter pair
mobileBrandName String
Device brand name. Eg. Samsung, HTC, etc.
getter/setter pair
mobileMarketingName String
Device marketing name. Eg. Galaxy S4 Mini
getter/setter pair
mobileModelName String
Device model name. Eg. GT-I9192
getter/setter pair
platformVersion String
Device OS version when data capture ended. Eg. 4.4.2
getter/setter pair
resettableDeviceId String
The type of the resettable_device_id is always IDFA on iOS and AdId on Android. Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownFields → UnknownFieldSet
no setterinherited
userDefaultLanguage String
The user language. Eg. "en-us", "en-za", "zh-tw", "jp"
getter/setter pair

Methods

addExtension(Extension extension, Object? value) → void
Adds an extension field value to a repeated field.
inherited
check() → void
inherited
clear() → void
Clears all data that was set in this message.
inherited
clearDeviceCategory() → void
clearDeviceId() → void
clearDeviceModel() → void
clearDeviceTimeZoneOffsetSeconds() → void
clearExtension(Extension extension) → void
Clears an extension field and also removes the extension.
inherited
clearField(int tagNumber) → void
Clears the contents of a given field.
inherited
clearLimitedAdTracking() → void
clearMobileBrandName() → void
clearMobileMarketingName() → void
clearMobileModelName() → void
clearPlatformVersion() → void
clearResettableDeviceId() → void
clearUserDefaultLanguage() → void
clone() DeviceInfo
Creates a deep copy of the fields in this message. (The generated code uses mergeFromMessage.)
override
copyWith(void updates(DeviceInfo)) DeviceInfo
Apply updates to a copy of this message.
override
createEmptyInstance() DeviceInfo
Creates an empty instance of the same message type as this.
override
createMapField<K, V>(int tagNumber, MapFieldInfo<K, V> fi) Map<K, V>
Creates a Map representing a map field.
inherited
createRepeatedField<T>(int tagNumber, FieldInfo<T> fi) List<T>
Creates List implementing a mutable repeated field.
inherited
extensionsAreInitialized() bool
inherited
freeze() → GeneratedMessage
Make this message read-only.
inherited
getDefaultForField(int tagNumber) → dynamic
Returns the default value for the given field.
inherited
getExtension(Extension extension) → dynamic
Returns the value of extension.
inherited
getField(int tagNumber) → dynamic
Returns the value of the field associated with tagNumber, or the default value if it is not set.
inherited
getFieldOrNull(int tagNumber) → dynamic
Returns the value of a field, ignoring any defaults.
inherited
getTagNumber(String fieldName) int?
inherited
hasDeviceCategory() bool
hasDeviceId() bool
hasDeviceModel() bool
hasDeviceTimeZoneOffsetSeconds() bool
hasExtension(Extension extension) bool
Returns true if a value of extension is present.
inherited
hasField(int tagNumber) bool
Whether this message has a field associated with tagNumber.
inherited
hasLimitedAdTracking() bool
hasMobileBrandName() bool
hasMobileMarketingName() bool
hasMobileModelName() bool
hasPlatformVersion() bool
hasRequiredFields() bool
Whether the message has required fields.
inherited
hasResettableDeviceId() bool
hasUserDefaultLanguage() bool
isInitialized() bool
Whether all required fields in the message and embedded messages are set.
inherited
mergeFromBuffer(List<int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges serialized protocol buffer data into this message.
inherited
mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
inherited
mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from data, a JSON object, encoded as described by GeneratedMessage.writeToJson.
inherited
mergeFromJsonMap(Map<String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from a JSON object represented as a Dart map.
inherited
mergeFromMessage(GeneratedMessage other) → void
Merges the contents of the other into this message.
inherited
mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void
Merges field values from json, a JSON object using proto3 encoding.
inherited
mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setExtension(Extension extension, Object value) → void
Sets the value of a non-repeated extension field to value.
inherited
setField(int tagNumber, Object value) → void
Sets the value of a field by its tagNumber.
inherited
toBuilder() → GeneratedMessage
Creates a writable, shallow copy of this message.
inherited
toDebugString() String
Returns a String representation of this message.
inherited
toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) Object?
Returns an Object representing Proto3 JSON serialization of this.
inherited
toString() String
Returns a String representation of this message.
inherited
writeToBuffer() Uint8List
inherited
writeToCodedBufferWriter(CodedBufferWriter output) → void
inherited
writeToJson() String
Returns a JSON string that encodes this message.
inherited
writeToJsonMap() Map<String, dynamic>
Returns the JSON encoding of this message as a Dart Map.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create() DeviceInfo
createRepeated() → PbList<DeviceInfo>
getDefault() DeviceInfo