gotoHomePosition static method

XmlDocumentFragment gotoHomePosition(
  1. String profileToken, {
  2. PtzSpeed? speed,
})

XML for the gotoHomePosition, requires a profileToken and optionally PtzSpeed

Implementation

static XmlDocumentFragment gotoHomePosition(
  String profileToken, {
  PtzSpeed? speed,
}) {
  builder.element('GotoHomePosition', nest: () {
    builder.namespace(Xmlns.tptz);

    ReferenceToken(profileToken).buildXml(builder);

    speed?.buildXml(
      builder,
      tag: 'Speed',
      namespace: Xmlns.tptz,
    );
  });

  return builder.buildFragment();
}