setDeviceAttributes method

  1. @override
void setDeviceAttributes({
  1. required Map<String, dynamic> attributes,
})
override

Use this function to send custom device attributes such as app preferences, timezone etc

Implementation

@override
void setDeviceAttributes({required Map<String, dynamic> attributes}) {
  try {
    final payload = {TrackingConsts.attributes: attributes};
    methodChannel.invokeMethod(MethodConsts.setDeviceAttributes, payload);
  } on PlatformException catch (exception) {
    handleException(exception);
  }
}