on_device Event

Fired for every dial device when the ListDevices method is called.

Syntax

class NetDialDeviceEventParams(object):
  @property
  def device_name() -> str: ...
  @property
  def device_type() -> str: ...

# In class NetDial:
@property
def on_device() -> Callable[[NetDialDeviceEventParams], None]: ...
@on_device.setter
def on_device(event_hook: Callable[[NetDialDeviceEventParams], None]) -> None: ...

Remarks

DeviceName provides the name of the device, and DeviceType provides the corresponding device type (e.g. 'modem').

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]