Add setHidden method to DevicePort