Loading api/current.txt +0 −3 Original line number Diff line number Diff line Loading @@ -14418,13 +14418,10 @@ package android.net.nsd { public final class NsdServiceInfo implements android.os.Parcelable { ctor public NsdServiceInfo(); method public int describeContents(); method public java.util.Map<java.lang.String, byte[]> getAttributes(); method public java.net.InetAddress getHost(); method public int getPort(); method public java.lang.String getServiceName(); method public java.lang.String getServiceType(); method public void removeAttribute(java.lang.String); method public void setAttribute(java.lang.String, java.lang.String); method public void setHost(java.net.InetAddress); method public void setPort(int); method public void setServiceName(java.lang.String); core/java/android/net/nsd/NsdServiceInfo.java +6 −1 Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ public final class NsdServiceInfo implements Parcelable { * <p> Keys should be short, ideally no more than 9 characters, and unique per instance of * {@link NsdServiceInfo}. Calling {@link #setAttribute} twice with the same key will overwrite * first value. * @hide */ public void setAttribute(String key, String value) { try { Loading @@ -150,7 +151,10 @@ public final class NsdServiceInfo implements Parcelable { } } /** Remove an attribute by key */ /** * Remove an attribute by key * @hide */ public void removeAttribute(String key) { mTxtRecord.remove(key); } Loading @@ -160,6 +164,7 @@ public final class NsdServiceInfo implements Parcelable { * * <p> The returned map is unmodifiable; changes must be made through {@link #setAttribute} and * {@link #removeAttribute}. * @hide */ public Map<String, byte[]> getAttributes() { return Collections.unmodifiableMap(mTxtRecord); Loading Loading
api/current.txt +0 −3 Original line number Diff line number Diff line Loading @@ -14418,13 +14418,10 @@ package android.net.nsd { public final class NsdServiceInfo implements android.os.Parcelable { ctor public NsdServiceInfo(); method public int describeContents(); method public java.util.Map<java.lang.String, byte[]> getAttributes(); method public java.net.InetAddress getHost(); method public int getPort(); method public java.lang.String getServiceName(); method public java.lang.String getServiceType(); method public void removeAttribute(java.lang.String); method public void setAttribute(java.lang.String, java.lang.String); method public void setHost(java.net.InetAddress); method public void setPort(int); method public void setServiceName(java.lang.String);
core/java/android/net/nsd/NsdServiceInfo.java +6 −1 Original line number Diff line number Diff line Loading @@ -141,6 +141,7 @@ public final class NsdServiceInfo implements Parcelable { * <p> Keys should be short, ideally no more than 9 characters, and unique per instance of * {@link NsdServiceInfo}. Calling {@link #setAttribute} twice with the same key will overwrite * first value. * @hide */ public void setAttribute(String key, String value) { try { Loading @@ -150,7 +151,10 @@ public final class NsdServiceInfo implements Parcelable { } } /** Remove an attribute by key */ /** * Remove an attribute by key * @hide */ public void removeAttribute(String key) { mTxtRecord.remove(key); } Loading @@ -160,6 +164,7 @@ public final class NsdServiceInfo implements Parcelable { * * <p> The returned map is unmodifiable; changes must be made through {@link #setAttribute} and * {@link #removeAttribute}. * @hide */ public Map<String, byte[]> getAttributes() { return Collections.unmodifiableMap(mTxtRecord); Loading