setDefPositionTrackerAccuracyCircleColor static method

GemError setDefPositionTrackerAccuracyCircleColor(
  1. Color color
)

Sets the color of the SDK position tracker accuracy circle.

The color is provided as a Color. Values with transparency will be rendered accordingly.

Parameters

  • color: (Color) Desired color for the accuracy circle.

Returns

  • (GemError) Error status indicating success or failure.

See also:

Implementation

static GemError setDefPositionTrackerAccuracyCircleColor(final Color color) {
  final OperationResult resultString = staticMethod(
    'MapSceneObject',
    'setDefPositionTrackerAccuracyCircleColor',
    args: <String, int>{
      'a': (color.a * 255).toInt(),
      'r': (color.r * 255).toInt(),
      'g': (color.g * 255).toInt(),
      'b': (color.b * 255).toInt(),
    },
  );

  final int gemApiError = resultString['gemApiError'];
  return GemErrorExtension.fromCode(gemApiError);
}