本文整理了Java中org.fourthline.cling.model.meta.Device.isFullyHydrated()
方法的一些代码示例,展示了Device.isFullyHydrated()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Device.isFullyHydrated()
方法的具体详情如下:
包路径:org.fourthline.cling.model.meta.Device
类名称:Device
方法名:isFullyHydrated
暂无
代码示例来源:origin: 4thline/cling
public String getDetailsMessage() {
StringBuilder sb = new StringBuilder();
if (getDevice().isFullyHydrated()) {
sb.append(getDevice().getDisplayString());
sb.append("\n\n");
for (Service service : getDevice().getServices()) {
sb.append(service.getServiceType()).append("\n");
}
} else {
sb.append(getString(R.string.deviceDetailsNotYetAvailable));
}
return sb.toString();
}
// DOC:DETAILS
代码示例来源:origin: 4thline/cling
@Override
public String toString() {
String name =
getDevice().getDetails() != null && getDevice().getDetails().getFriendlyName() != null
? getDevice().getDetails().getFriendlyName()
: getDevice().getDisplayString();
// Display a little star while the device is being loaded (see performance optimization earlier)
return device.isFullyHydrated() ? name : name + " *";
}
}
代码示例来源:origin: fire3/sailorcast
@Override
public boolean isFullyHydrated()
{
return device.isFullyHydrated();
}
}
代码示例来源:origin: trishika/DroidUPnP
@Override
public boolean isFullyHydrated()
{
return device.isFullyHydrated();
}
}
代码示例来源:origin: hubing8658/UPnP-DLNA-Demo
public String getDetailsMsg() {
StringBuilder sb = new StringBuilder();
if (device.isFullyHydrated()) {
sb.append(device.getDisplayString());
sb.append("\n\n");
// sb.append(device.getIdentity().getUdn()).append("\n");
// sb.append("max-age:" + device.getIdentity().getMaxAgeSeconds()).append("\n");
for (Service srv : device.getServices()) {
sb.append(srv.getServiceType()).append("\n");
}
} else {
sb.append("正在查找设备详情,请稍后.");
}
return sb.toString();
}
代码示例来源:origin: hubing8658/UPnP-DLNA-Demo
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
DeviceDisplay dd = adapter.getItem(position);
((MyApplication) getApplication()).setDeviceDisplay(dd);
Intent intent = null;
if (dd.getDevice().isFullyHydrated()) {
intent = new Intent(MainActivity.this, BrowserContentActivity.class);
} else {
showDeviceDetails(dd);
}
if (intent != null) {
startActivity(intent);
}
}
});
代码示例来源:origin: hubing8658/UPnP-DLNA-Demo
@Override
public String toString() {
String name = device.getDetails() != null && device.getDetails().getFriendlyName() != null
? device.getDetails().getFriendlyName() : device.getDisplayString();
return device.isFullyHydrated() ? name : name + " *";
}
内容来源于网络,如有侵权,请联系作者删除!