customizeDefPositionTracker static method

GemError customizeDefPositionTracker(
  1. List<int> buffer,
  2. SceneObjectFileFormat format
)

Customizes the SDK's default position tracking object.

Provide binary object data (for example a glTF or texture) and the corresponding SceneObjectFileFormat to replace the default position tracker visual. To apply a flat texture only, pass data with SceneObjectFileFormat.tex.

Parameters

  • buffer: (List<int>) Binary data for the scene object or texture. Pass an empty list to restore the SDK's default resource.
  • format: (SceneObjectFileFormat) The file format of the provided buffer.

Returns

  • (GemError) Error status indicating success or the reason for failure.

Implementation

static GemError customizeDefPositionTracker(
  final List<int> buffer,
  final SceneObjectFileFormat format,
) {
  final OperationResult resultString = staticMethod(
    'MapSceneObject',
    'customizeDefPositionTracker',
    args: <String, Object>{'buffer': buffer, 'format': format.id},
  );

  final int gemApiError = resultString['gemApiError'];

  return GemErrorExtension.fromCode(gemApiError);
}