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.
this | |
type |
The type of the device to be retrieved. |
A new DeviceInfo. |