Device.getReferenceCount

Returns the current reference count of device. Since 1.10

class Device
uint
getReferenceCount
()

Return Value

Type: uint

the current reference count of device. If the object is a nil object, 0 will be returned.