Example #1
0
 /** @since Available in iOS 4.0 and later. */
 public NSStream setNetworkServiceType(NSStreamNetworkServiceType serviceType) {
   setProperty(NSStreamProperty.NetworkServiceType, serviceType.value());
   return this;
 }
Example #2
0
 /** @since Available in iOS 4.0 and later. */
 public NSStreamNetworkServiceType getNetworkServiceType() {
   NSString val = (NSString) getProperty(NSStreamProperty.NetworkServiceType);
   return NSStreamNetworkServiceType.valueOf(val);
 }