get_device


Description:

public DeviceInfo? get_device (string type)

Get the service with type type directly contained in this as a new object implementing DeviceInfo, or null if no such device was found.

The returned object should be unreffed when done.

Note that devices are not cached internally, so that every time you call this function a new object is created. The application must cache any used devices if it wishes to keep them around and re-use them.

Parameters:

this

A DeviceInfo

type

The type of the device to be retrieved.

Returns:

A new DeviceInfo.




2022 vala-language.org