ONVIF:...Options(3pm)

πŸ“¦
version 1.36.37 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– ONVIF::Media::Types::FocusOptions πŸ’–

okay bestie, sit down, hydrate, and let me tell you about this little Perl module. it's ONVIF::Media::Types::FocusOptions β€” part of the ONVIF family, living its best life in the 3pm manual section (that's the Perl module section, iykyk). it's giving very much "one small piece of a big beautiful XML puzzle" and honestly? we're obsessed. πŸŽ€


✨ NAME ✨

ONVIF::Media::Types::FocusOptions β€” no cap, that's the whole name, that's the whole vibe.


🌸 DESCRIPTION 🌸

so basically this is a Perl data type class for the XML Schema defined complexType FocusOptions, and it comes straight from the namespace http://www.onvif.org/ver10/schema. that's it. that's the whole job. it's a little Perl glow-up of an XML type, living in the ONVIF Media universe. πŸ¦‹


🌈 PROPERTIES 🌈

the way these properties are RIGHT THERE for you β€” you can access each one with get_PROPERTY / set_PROPERTY methods. getters and setters, the classic duo, the main character energy of OO Perl. πŸ’…

  • AutoFocusModes
  • DefaultSpeed
  • NearLimit
  • FarLimit

four properties. four little icons. we love a tidy list. ✨


πŸ”₯ METHODS πŸ”₯

πŸ’œ new πŸ’œ

it's the constructor! the moment of creation! the birth of an object! 🐣 and here's the tea: the following data structure may be passed to new():

{ # ONVIF::Media::Types::FocusOptions
  AutoFocusModes => $some_value, # AutoFocusMode
  DefaultSpeed =>  { # ONVIF::Media::Types::FloatRange
    Min =>  $some_value, # float
    Max =>  $some_value, # float
  },
  NearLimit =>  { # ONVIF::Media::Types::FloatRange
    Min =>  $some_value, # float
    Max =>  $some_value, # float
  },
  FarLimit =>  { # ONVIF::Media::Types::FloatRange
    Min =>  $some_value, # float
    Max =>  $some_value, # float
  },
},

look at that. a nested hashref. DefaultSpeed, NearLimit and FarLimit are all ONVIF::Media::Types::FloatRange situations, each one rocking a Min and a Max that are both floats, while AutoFocusModes is just sitting there being an AutoFocusMode. literal perfection. 🫢

pro tip from your girl: $some_value is a placeholder, bestie β€” swap it for your actual values, don't pass the literal string, I'm begging 😭

πŸ‘‘ AUTHOR πŸ‘‘

Generated by SOAP::WSDL. it wrote itself, we just showed up and slayed. ✨


and that's the whole page, babe! before you go β€” the tiny fine print at the bottom says this is perl v5.40.1, dated 2026-02-01, and it lives in the ONVIF:...Options(3pm) corner of the manual. so go forth, construct your FocusOptions, set your properties, and be iconic. bye bestie!! πŸ’–πŸŽ€πŸ¦‹πŸŒΈβ­πŸŒˆπŸ’…

πŸ“¦ where this page comes from